Expression Blend 4 - 如何将listpicker添加到原型? [英] Expression Blend 4 - How to add listpicker to prototype?

查看:74
本文介绍了Expression Blend 4 - 如何将listpicker添加到原型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Expression Blend 4为我的应用程序(Windows Phone 7)创建原型,但我找不到一种简单的方法来添加某些常用功能。 我要添加的一个功能是

Hi, I'm trying to create a prototype for my application (Windows Phone 7) using Expression Blend 4, but I can't find an easy way to add certain common features to it.  One feature I'm trying to add is

我有一个文本框,我需要填写像国家这样的价值。 当用户点击texbox时,我需要显示所有国家/地区的可滚动列表,以便他们可以选择一个填充到文本框中的列表。

I have a text box that I need to fill with some value like a country.  When the user taps the texbox I need a scrollable list of all countries to be displayed so they can pick one that gets filled into the text box.

我在查找有关此信息时遇到问题这不涉及C#。如果使用C#是我唯一的方法,但必须有一个更简单的方法来制作原型,

I'm having trouble finding info on this that does not involve C#. If using C# is the only way I will do it, but there must be an easier way for just making the prototype,

感谢您的帮助

推荐答案

您好s1978。

Hello s1978.

您是否尝试过使用ComboBox? 然后,您可以将TextBlock绑定到ComboBox中的选定项目。 虽然你可能甚至不需要TextBlock。

Have you tried using a ComboBox?  You could then bind your TextBlock to the selected item in the ComboBox.  Although you might not even need the TextBlock.

另一种选择是填充列表并绑定到列表中的选定项目。

Another option is to populate a list and bind to the selected item in the list.

或者你可以在右键单击弹出的TextBlock上放置一个ContextMenu。

Or you could put a ContextMenu on your TextBlock that pops up on right-click.

有很多方法可以解决这个问题。 请告诉我们您的偏好,我们可以帮助您完成它。

There's a good many ways to go about it.  Just let us know what you prefer and we can help walk you through it.

虽然以下内容并未真正处理您的请求,但这是Blend中数据绑定的一个很好的演练,它是多么简单。 这可以帮助您绑定到listBox或comboBox中的选定项目。

While the following is not really dealing with your request, it is a great walkthrough on databinding in Blend and how simple it can be.  Which can help you with binding to the selected item in a listBox or comboBox.

http ://www.kirupa.com/blend_silverlight/intro_sample_data_pg1.htm

~Christine

~Christine


这篇关于Expression Blend 4 - 如何将listpicker添加到原型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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