如何阻止ListPicker进入FullScreenMode [英] How to stop ListPicker from going into FullScreenMode

查看:67
本文介绍了如何阻止ListPicker进入FullScreenMode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用WP8 Controls工具包中的ListPicker
http://phone.codeplex.com/

Hi, I'm using ListPicker from WP8 Controls toolkit http://phone.codeplex.com/

我的列表动态绑定到ItemsSource。当我的ListPicker在源中有6个以上的项目时,它将进入全屏模式。我不希望这种情况发生。有没有办法禁用它?我只想要我页面上的下拉列表。

My list is dynamically bound to an ItemsSource. When my ListPicker has 6+ items in the source, it will go to fullscreen mode. I don't want this to happen. Is there a way to disable this? I just want the dropdown list on my page.

谢谢

// XAML file
<toolkit:ListPicker x:Name="listTexture" Header="Texture" Background="Black"  ItemsSource="{Binding}" SelectionMode="Single" ExpansionMode="ExpansionAllowed" />


// Code behind C# file
textureNames = new List<string>();
for (int i = 0; i < 6; ++i)
{
   ParticleEffect effect = (ParticleEffect)i;
   textureNames.Add(effect.ToString());
}
listTexture.ItemsSource = textureNames;




推荐答案

你好

你可以在这里阅读更多内容

well you can read more here

http://www.windowsphonegeek.com/articles/listpicker-for-wp7-in-depth

但作为解决方案,你可以给予它可以作为一个解决方案,也可以试试这个你想要的东西

but as a solution you can give it margins as a solution or try this hope this what you are looking for

< 工具包 ListPicker x 名称 = " listTexture"
标题 = " Texture"   ItemsSource = " {Binding}" / >

<toolkit:ListPicker x:Name="listTexture" Header="Texture"  ItemsSource="{Binding}" />


这篇关于如何阻止ListPicker进入FullScreenMode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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