I have a bunch of key/value pair text data that I need to display.
I currently use LongListSelector with an ItemTemplate which uses a horizontal StackPanel with two TextBlock s inside:
<StackPanel Orientation="Horizontal">
<TextBlock Text="Title: " />
<TextBlock Text="{Binding Path=Title}" TextWrapping="Wrap" />
</StackPanel>
This gives a nice "label: value" look.
However, I find this verbose. Is there a nicer way to achieve the same thing?
I've tried putting everything in a single TextBlock like so:
<TextBlock Text="Title: {Binding Path=Title}" TextWrapping="Wrap" />
but it doesn't want to work!