ListPicker - 如何在全页视图打开时显示当前选择
我正在 Mango 上使用最新 Silverlight 工具包中的 ListPicker,
我有一长串(100 个项目)简单文本项目可供选择 - 使用单项选择模式。
当我单击 ListPicker 时,它会很好地全屏打开,但不会滚动到当前选择。
这对于用户来说是一种痛苦 - 他们通常想要从“item75”移动到“item76”
我已经查看了可用的属性、事件和源代码,但我看不到任何明显的方法来使列表滚动全屏模式打开时,将当前选定的项目放入列表中。
有人有什么想法吗?
I'm using the ListPicker from the latest Silverlight Toolkit on Mango
I've got a long list (100 items) of simple text items to choose between - using single item selection mode.
When I click on the ListPicker it opens up in full screen very nicely, but it doesn't scroll to the current selection.
This is a pain for the user - who typically wants to move from "item75" to "item76"
I've looked through the available properties, events and source code, but I can't see any obvious way to get the list to scroll the current selected item into list when the full screen mode opens.
Anyone got any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现这可能会有所帮助,我希望它能!
深入了解 ListPicker
在 MSDN 上查看哪些事件可以当选择列表选择器项目时触发并摆弄它们,您可能会找到一个非常好的解决方案! :)
I found this Which may help, i hope it does!
in Depth ListPicker
See on MSDN what some of the events that can be triggered when selecting a Listpicker item and mess around with them, you may find a Very good Solution! :)
当前版本似乎没有办法做到这一点 - 但代码是开源的。
当前版本还有一个缺点,即使用 StackPanel 而不是 VirtualizingStackPanel - 因此显示长列表时速度非常慢。
我最终没有使用此版本,而是使用了不同的列表选择器 http://priyarules.posterous.com/categorized-list-selector-for-windows-phone-7
There didn't seem to be a way to do this with the current release - but the code is open source.
The current release also has a disadvantage of using StackPanel instead of VirtualizingStackPanel - so it is very slow at displaying long lists.
Instead of using this release, I ended up going with a different list selector http://priyarules.posterous.com/categorized-list-selector-for-windows-phone-7