简体   繁体   English

Windows Phone 8.1自定义控件

[英]Windows Phone 8.1 custom controls

I'm developing Windows Phone 8.1 application and I want to use data visualization. 我正在开发Windows Phone 8.1应用程序,并且想使用数据可视化。 I found WinRT XAML Toolkit as a solution, but I don't know how to use this. 我找到了WinRT XAML Toolkit作为解决方案,但是我不知道如何使用它。 Can anyone tell the full instructions? 谁能说出全部说明?

I've tried this way: 我已经尝试过这种方式:

1)Package Manager Console: Install-Package WinRTXamlToolkit.Controls.DataVisualization.WindowsPhone 1)Package Manager控制台:Install-Package WinRTXamlToolkit.Controls.DataVisualization.WindowsPhone

2)In Visual Studio 2013 toolbox right click->add tab->right click inside tab->choose items->open dll file from my project packages folder. 2)在Visual Studio 2013工具箱中,右键单击->添加选项卡->右键单击内部选项卡->选择项目->从我的项目包文件夹中打开dll文件。

When I do this I can see new controls in toolbox, but I can't use, because when I drag control to my activity there appears empty box. 当我这样做时,我可以在工具箱中看到新的控件,但是我不能使用,因为当我将控件拖动到活动中时,会出现一个空框。 And also icons of controls are the same. 控件的图标也相同。 在此处输入图片说明

You could use Nuget to install this package, after adding the package, you could see it in your reference list. 您可以使用Nuget来安装此软件包,添加软件包后,您可以在参考列表中看到它。

Refer to the WinRT XAML Toolkit in nuget page: https://www.nuget.org/packages/winrtxamltoolkit/ . 请参阅nuget页面中的WinRT XAML工具包: https ://www.nuget.org/packages/winrtxamltoolkit/。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM