سؤال

I have just installed the Windows Phone Toolkit (http://phone.codeplex.com/) with the intention of using the ListPicker.

When I try and add it to the XAML it states that it's not valid for a Silverlight project. However when I started this project I chose Windows Phone, not Silverlight.

Any ideas what may be going wrong?

ListPicker Error

هل كانت مفيدة؟

المحلول

In your XAML,

you can do like this

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
<toolkit:ListPicker></toolkit:ListPicker>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top