WPToolkit not appear in the references after successful install

女生的网名这么多〃 提交于 2019-12-11 02:47:12

问题


I installed the WPToolkit through NuGet and it was successful, but it wasn't add into project's solutions, that's why i can't add in the xaml

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"

<toolkit:AutoCompleteBox...

*The name "AutoCompleteBox" does not exist in the namespace "clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit". *

So what can i do?

I am using:

Microsoft Visual Studio Ultimate 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.51641

Thx, Robertoq


回答1:


@Robertoq, currently WPToolkit doesn't support new Windows Phone 8.1 XAML (i.e. the new framework targeting Universal Application API's) based application.

But they do support Windows Phone 8.1 Silverlight Application, which uses the old 8.0 Silverlight API's for application framework. And that you can find here & here. I tested this myself, I added the toolkit to Windows Phone 8.1 Silverlight application & it worked.

So you don't need to waste your time in adding .dll to a project where it doesn't support that .dll. If you want to build a 8.1 application & you do need to use the toolkit then just target 8.1 Silverlight app.

You can create one by going to Visual Studio 2013 -> New Project -> Universal App -> Windows Phone App -> Blank App (Windows Phone Silverlight) -> Windows Phone 8.1 (Select)

Hope this helps.



来源:https://stackoverflow.com/questions/24181903/wptoolkit-not-appear-in-the-references-after-successful-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!