WPToolkit not appear in the references after succe

2019-07-16 12:32发布

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条回答
爷、活的狠高调
2楼-- · 2019-07-16 13:09

@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.

查看更多
登录 后发表回答