views:

41

answers:

1

I love the controls from the Bag-Of-Tricks.

I am interested in modifying the ReorderListBox control to get a ReorderListView control. However, simply changing the base class from ListBox to ListView is not working.

When I try to add a ReorderListView to XAML like this:

  <lib:ReorderListView Grid.Row="1">
        <ReorderListView.View>
            <GridView>
                <GridViewColumn Header="Data1" />
            </GridView>
        </ReorderListView.View>
  </lib:ReorderListView>

I get an error ("The tag 'ReorderListView.View' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'.)

How do I modify the ReorderListBox example to get this to work? Has anyone already succeeded in doing this?

A: 

It looks like you forgot to specify the 'lib' namespace of your ReorderListView.View property

<lib:ReorderListView Grid.Row="1">
    <lib:ReorderListView.View>
        <GridView>
            <GridViewColumn Header="Data1" />
        </GridView>
    </lib:ReorderListView.View>

IanR
Duh, that's clearly the cause of the error I am observing.
Philipp Schmid