【发布时间】:2013-08-29 13:50:01
【问题描述】:
谁能告诉我如何在全屏模式下设置列表选择器元素的样式?
这是我在页面 xaml 中的代码:
<toolkit:ListPicker FullModeItemTemplate="{Binding lpkFullItemTemplate}"
ItemTemplate="{Binding lpkItemTemplate}"
x:Name="people"/>
模板是:
<phone:PhoneApplicationPage.Resources>
<DataTemplate x:Name="lpkItemTemplate">
<TextBlock Text="{Binding people_list}" />
</DataTemplate>
<DataTemplate x:Name="lpkFullItemTemplate">
<TextBlock Text="{Binding people_list}"/>
</DataTemplate>
</phone:PhoneApplicationPage.Resources>
我还想知道是否有办法阻止列表选择器进入完整模式。我试图设置 ItemCountThreshold 属性,但我发现它在 wp8 sdk 中是私有的
提前致谢
【问题讨论】:
标签: xaml windows-phone-7 windows-phone-8 styles