Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using longlistselector in my win phone 8 app. I have used ItemTemplate, GroupHeaderTemplate and JumpListStyle. For GroupHeaderTemplate I am using xaml
C#
<DataTemplate>
    <Grid Margin="0 0 0 10">
          <Grid.Background>
                  <SolidColorBrush Color="{Binding DataContext.ForegroundColor, ElementName=LayoutRoot}"/>
          </Grid.Background>
     </Grid>
   </DataTemplate>

This is working fine. But if I apply same to ItemTemplate for JumpListStyle than it does nothing. The only difference is in this case template is defining inside style.

C#
<phone:LongListSelector.JumpListStyle>
     <Style TargetType="phone:LongListSelector">
          <Setter Property="ItemTemplate" Value="{StaticResource JumpListDataTemplate}"/>
      </Style>
  </phone:LongListSelector.JumpListStyle>


Any suggestion, what is wrong with the above code?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900