Visual Studio 2012(x64) - Windows Phone工具包 - 如何将WP工具包自定义控件添加到VS中的工具箱

时间:2013-10-03 07:54:25

标签: c# visual-studio-2012 windows-phone-8 windows-phone-8-sdk windows-phone-toolkit

问题在于:

Visual Studio 2012(x64) Windows 8(x64)上安装了 Windows Phone 8 SDK

在我的项目中( WP8 App针对WP 4.0 with .NET 4.5 ),我添加了(通过NuGet )Windows Phone Toolkit和我想添加它提供给工具箱的自定义控件。有办法吗?

我管理过一次,但由于某种原因,我之后无法从工具箱中添加LongListSelector。

编辑:

我想要在VS工具箱中加入WP TOOLKIT中的定制控件

2 个答案:

答案 0 :(得分:2)

您可以从http://phone.codeplex.com/sourcecontrol/latest

下载或浏览NuGet WPToolkit的示例代码

此处,所有自定义控件都已完美定义样本。您可以通过此直接实现XAML和C#代码。

希望,这可能对您有所帮助。不要忘记将此标记为答案。如果它对你有帮助。

答案 1 :(得分:1)

请参阅this answer。添加控件时,浏览到WP Toolkit文件夹。为方便起见,具体答案将复制到此处,如下所示:

In my windows 8 machine it usually points to
your project where WPToolkit is installed
[WPtoolkit.4.2013.08.16\lib\sl4-windowsphone71\Microsoft.Phone.Controls.Toolkit.dll]
Please note, Although, I have chosen a WP8 project, I had to choose the 7.1 dll to make to add it to the Toolbox. the wp8 folder failed to add.