This is yet another LongListSelector question..
I need to have some selectors with this style and add different bindings to them:
<phone:LongListSelector x:Name="ListSelector">
<phone:LongListSelector.ItemTemplate>
<DataTemplate>
<StackPanel Name="containerStack" Margin="0,0,0,0" Orientation="Horizontal">
<StackPanel HorizontalAlignment="Left" Height="Auto" VerticalAlignment="Top" Width="60" Margin="3,20,2,20">
<TextBlock TextWrapping="Wrap" Style="{StaticResource PhoneTextLargeStyle}" FontSize="{StaticResource PhoneFontSizeMedium}" Foreground="White"/>
</StackPanel>
<StackPanel Height="Auto" VerticalAlignment="Top" Width="350" Margin="2,20,3,20">
<TextBlock TextWrapping="Wrap" Style="{StaticResource PhoneTextLargeStyle}" FontSize="{StaticResource PhoneFontSizeMedium}" Foreground="White" Margin="0"/>
<TextBlock TextWrapping="Wrap" Style="{StaticResource PhoneTextLargeStyle}" FontSize="{StaticResource PhoneFontSizeMedium}" Foreground="DarkBlue" Margin="0"/>
</StackPanel>
</StackPanel>
</DataTemplate>
</phone:LongListSelector.ItemTemplate>
</phone:LongListSelector>
I want to make it programmatically. I saw this answer, but that didn't work for me in windows phone 8.
How can I reproduce it by code or as a style? thanks