为 Windows 手机安装 Silverlight 工具包 [英] installing silverlight toolkit for windows phone
问题描述
我刚刚在 http://silverlight.codeplex.com/releases 下载了 nov11 的 silverlight 工具箱/view/75888 以便能够在我的 Windows Phone 7 应用程序中使用 ListPicker.我安装了它,然后为 windows 手机启动了 Visual Studio 2010,但是当我尝试使用 ListPicker 时,它似乎不可用.我需要做什么才能安装工具包才能使用其功能?
I just downloaded the silverlight toolbox of nov11 at http://silverlight.codeplex.com/releases/view/75888 in order to be able to use ListPicker in my windows phone 7 application. I installed it and then started visual studio 2010 for windows phone but when I try to use ListPicker, it seems like this is not available. what do I need to do in order to install the toolkit so that I can use its features?
提前谢谢
推荐答案
您需要通过右键单击解决方案树中的 References 文件夹来添加对 Microsoft.Phone.Controls.Toolkit
的引用.比在 Silverlight 页面上要使用工具包,您需要添加对工具包程序集的引用:
You will need to add a reference to Microsoft.Phone.Controls.Toolkit
by right clicking the References folder in the solution tree. Than on the Silverlight page you want to use the toolkit on you will need to add a reference to the toolkit assembly:
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
然后你可以这样使用它:
and then you can use it like that:
这篇关于为 Windows 手机安装 Silverlight 工具包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!