I have longlistselector with two textblocks.The second textblock is populated with some items. The problem is that i can't add some string before every item.In particular I want to add A-Z order before every item.Here is my XAML code for the LongListSelector:
<phone:LongListSelector
Name="llsPrasanje"
Grid.Row="1"
ItemsSource="{Binding Items}"
Margin="12,12,12,12">
<phone:LongListSelector.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Name="txtBukva" Text=""/>
<TextBlock Text="{Binding Odgovor}" Grid.Column="1"/>
</Grid>
</DataTemplate>
</phone:LongListSelector.ItemTemplate>
</phone:LongListSelector>
For example I want to show the items like this:
A: firstItem
B: secondItem
C: thirdItem
firstItem,secondItem,thirdItem get the values from the {Binding Odgovor}. I want the first TextBlock to generate A,B,C... before every item. How can i accomplish this?