0

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

Dan
  • 2,304
  • 6
  • 42
  • 69
  • Have you added XML Namespace toolkit? `xmlns:toolkit=....`? – Romasz Apr 08 '14 at 14:55
  • I hadn't, and that solved it, so if you add that as a solution I'll green tick it. They didn't mention that in the tutorial I was reading :/ – Dan Apr 08 '14 at 14:57
  • I'm glad I've helped. The idea of SO is that your problem was solved. I'm not eager to add one sentence answers - so as for me you could delete your question. – Romasz Apr 08 '14 at 15:09
  • It's nice to hear that on here! – Dan Apr 08 '14 at 15:16

1 Answers1

0

In your XAML,

you can do like this

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
<toolkit:ListPicker></toolkit:ListPicker>
Sajeetharan
  • 216,225
  • 63
  • 350
  • 396