views:

24

answers:

2

This seems like such a silly question, but I can't for the life of me figure out how to use the WrapPanel in the most recent (April 2010) Silverlight toolkit.

Apparently they thought it was a good idea to change the namespaces/assemblies around, and not put anything on their codeplex site about this. And their samples for these controls do not show the entire code (like where they register these namespaces.)

Any help would be appreciated.

+1  A: 

What have you tried? From what I can tell from the source, it should be something like:

<UserControl ... xmlns:tk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"&gt;
    <tk:WrapPanel/>
</UserControl>

Note that it shouldn't really matter if they've changed assemblies around, or even namespaces, because they've mapped relevant CLR namespaces to http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit.

HTH,
Kent

Kent Boogaart
Indeed - we posted at the same time. Thanks.
Adam
A: 

Sigh - here's what you need:

xmlns:wp="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"

Hope someone else stumbles on here and saves some time.

Adam