LongListSelector JumpListStyle后台绑定不起作用 [英] LongListSelector JumpListStyle background binding not works

查看:88
本文介绍了LongListSelector JumpListStyle后台绑定不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在win phone 8应用程序中使用longlistselector。我使用过ItemTemplate,GroupHeaderTemplate和JumpListStyle。对于GroupHeaderTemplate,我使用的是xaml

I am using longlistselector in my win phone 8 app. I have used ItemTemplate, GroupHeaderTemplate and JumpListStyle. For GroupHeaderTemplate I am using xaml

<DataTemplate>
    <Grid Margin="0 0 0 10">
          <Grid.Background>
                  <SolidColorBrush Color="{Binding DataContext.ForegroundColor, ElementName=LayoutRoot}"/>
          </Grid.Background>
     </Grid>
   </DataTemplate>



这个工作正常。但是,如果我对JumpListStyle的ItemTemplate应用相同而不是什么。唯一的区别是在这种情况下模板定义了内部样式。




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.

<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?

推荐答案

这篇关于LongListSelector JumpListStyle后台绑定不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆