I have a list view in which I use binding to display my information. I use a simple data template. Is there a way to bind two data in one control. What I mean would to be replace something like :
<TextBlock Text=”{Binding LName}”/>
<TextBlock Text=”, “/>
<TextBlock Text=”{Binding NName}”/>
to something like
<TextBlock Text=”{Binding LName} + ‘,’ + {Binding FName}”/>
Thanks
If you’re on WPF 3.5SP1 or above, you don’t need to write your own value converter for your use case. Instead, just use
StringFormat: