Binding with custom text in WPF

Posted by nihi_l_ist on Stack Overflow See other posts from Stack Overflow or by nihi_l_ist
Published on 2010-05-24T11:10:17Z Indexed on 2010/05/24 11:21 UTC
Read the original article Hit count: 150

Filed under:
|
|
|

Can i write something like this in WPF(i know that this piece of code is wrong, but need to know if there is kind of this construct):

<TextBlock Height="50" Text="Test: {Binding Path=MODULE_GUID}" />


Or always to add some text to binding value i must do something like this:

<StackPanel Orientation="Horizontal">
   <TextBlock Height="50" Text="Test: " />
   <TextBlock Height="50" Text="{Binding Path=MODULE_GUID}" />
</StackPanel>

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf