ListPicker全屏列表(ListPicker fullscreen list)

编程入门 行业动态 更新时间:2024-10-10 02:18:29
ListPicker全屏列表(ListPicker fullscreen list)

在我看来,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.

最满意答案

在什么基础上你说项目点击目标尺寸太小? 这是个人意见还是基于用户反馈?

如果你不喜欢ListPicker的默认样式,那么重新尝试它。

您可以使用ItemCountThreshold属性来控制是否始终使用FullMode(将其设置为0)。

您还可以应用完整模式模板来增加其中显示的目标大小。

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.

更多推荐

本文发布于:2023-08-05 15:01:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1435180.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:全屏   列表   ListPicker   fullscreen   list

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!