滚动ListPicker项目清单 [英] Scrollable ListPicker items list

查看:121
本文介绍了滚动ListPicker项目清单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的应用程序中的弹出式菜单控件。在这个弹出我使用ListPicker对象选择
适当的项目。如果项目的列表中,如果比较小,一切工作正常,但是,但是,如果列表中的项目数量大,项目的列表是在一个新的页面的背景显示的某个地方。这对本土的行为 ExpansionMode.FullScreenOnly ListPicker的,但我不能使用这种方式。

I have a Popup control in my application. In this popup I use a ListPicker object to choose the proper item. If the list of items if quite small, everything works fine, but, however, if the list items number is big, the list of items is shown at a new page somewhere at the background. That's the native behavior for ExpansionMode.FullScreenOnly of ListPicker, but I can't use it that way.

有没有一种方法,使项目列表滚动保存的ListPicker行为的 ExpansionAllowed 的风格?

Is there a way to make a list of items scrollable to save the ListPicker behaviour of ExpansionAllowed style?

如果不是,是否有类似的控制中的Windows Phone,它允许?创建该样式下拉菜单

If not, is there a similar control in Windows Phone, that allows to create a drop-down menu in that style?

右键,让我示区别:

1)这就是它应该如何工作,元件的数目是相当低的,只有它们中的四个。当我在点击的项目(项目都有一个名称2012年12月17日)的项目列表下拉菜单显示。

1) That's how it should work, the number of elements is quite low, there are only four of them. When I click at the item (item has a name 2012-12-17) a list of items is shown in drop-down menu.

2),这就是问题之一。项目数很高,还有十多个。当我点击在当前项目中,下拉菜单中没有这个弹出所示,代替它显示在新的页面(可能在背景中看到)。但是,这打破我所有的逻辑,我甚至不能选择其他元素(不能点击它,因为你不能弹出打开时,点击页面)。

2) That's the problem one. The number of items is high, there are more than ten. When I click at the current item, the drop-down menu isn't shown in this popup, instead it's shown at the new page (could be seen in background). But that breaks all my logic, I can't even choose another element(can't click on it, because you can't click on page when popup is opened).

任何人都可以提出一个解决办法?

Can anyone propose a solution?

推荐答案

该ListPicker控制似乎是无用的,因为我无法找到如何解决这个问题。

The ListPicker control seems to be useless, as I couldn't find out how to solve this problem.

该解决方案将是使用不同的控制,例如列表框,它是由默认滚动的。 (将类似滚动文本菜单项问题解决),这将是从UI风格,我想不同的,但它的工作

The solution will be to use different control, for example ListBox, which is scrollable by default. (will be similar to Scrolling ContextMenu items question solution) That will be differ from the UI-style I wanted, but it will work.

这篇关于滚动ListPicker项目清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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