1

I have a xaml which has the following code.

<ListBox.ItemsPanel>
    <ItemsPanelTemplate>
        <toolkit:WrapPanel Orientation="Horizontal"/>
    </ItemsPanelTemplate>
</ListBox.ItemsPanel>

Now the error says that The name wrappanel does exist in the namespace clr-namespace:Microsoft.Phone.Controls etc...

Any idea how to fix it.

Toni Petrina
  • 7,014
  • 1
  • 25
  • 34
user88975
  • 610
  • 1
  • 9
  • 18

3 Answers3

2

You need to add the namespace to the root element of the page and you also need to reference it in your project either directly from the disk or by using NuGet:

Install-Package WPToolkit

In your XAML add the following:

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
Toni Petrina
  • 7,014
  • 1
  • 25
  • 34
0

Try reinstalling the package, it worked

user88975
  • 610
  • 1
  • 9
  • 18
0

It's not working because Windows Phone toolkit is only available for

Windows Phone Silverlight Applications.

Vivek Saurav
  • 2,235
  • 4
  • 25
  • 46