ListPicker 全屏列表
在我看来,ListPicker 列表项是小得令人无法接受的点击目标;当然,它们的高度小于微软发布的样式指南建议的最小尺寸,而且微软已经开始以更大的字体全屏显示列表,这表明我并不是唯一持有这种观点的人。
我想在我自己的 UI 设计中使用这个全屏大字体演示。我尝试指定 DataTemplate (作为静态资源),但它似乎没有任何效果,尽管我很确定它已被处理,因为当我在资源名称中输入错误时,编译器会抱怨。
In my opinion, ListPicker list items are unacceptably small tap targets; certainly their height is smaller than the minimum size recommended by the style guide Microsoft published, and fact that Microsoft has taken to presenting the list full-screen in a much larger font suggests that I am not alone in holding this opinion.
I would like to use this full-screen big-font presentation in my own UI designs. I have tried specifying a DataTemplate (as a static resource) but it didn't seem to have any effect, although I'm pretty sure it is processed because when I made a typo in the resource name the compiler complained.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您凭什么说项目点击目标尺寸太小?这是个人意见还是基于用户反馈?
如果您不喜欢 ListPicker 的默认样式,请重新模板化它。
您可以使用
ItemCountThreshold
属性来控制是否始终使用 FullMode(将其设置为 0)。您还可以应用完整模式模板来增加此处显示的触摸目标大小。
On what basis do you say that the item tap target size is too small? Is this personal opinion or based on user feedback?
If you don't like default style of the ListPicker then retemplate it.
You can use the
ItemCountThreshold
property to control whether FullMode is always used or not (set it to 0).You can also apply a full mode template to increase the touoch target size of what is displayed there.
我使用 ListPickerItem 对象作为项目。这会一直有效,直到有足够的物品触发完整模式,然后它就会呕吐。
如果我导入 System 命名空间并使用 String 对象,一切都会很顺利。提供 DataTemplate 并绑定到某些内容也可以。
我想我发现了一个真正的错误,但有一个简单的解决方法:不要使用 ListPickerItem。
I was using ListPickerItem objects for the items. This works until there are enough items to trigger Full mode and then it barfs.
If I import the System namespace and use String objects, everything's hunky dory. Supplying a DataTemplate and binding to something also works.
I think I have found a bona fide bug, but one with a trivial workaround: don't use ListPickerItem.