This project is read-only.

Error when trying to use DragDockPanelHost as Panel of ListView.ItemsPanel

Jul 5, 2012 at 5:42 PM
Edited Jul 5, 2012 at 5:44 PM

Hi all,

I try to apply DragDockPanel to ListView as ItemsPanel but no luck:

<ListView Grid.Column="0" BorderThickness="1"    


It raise error "VisualTree of ItemsPanelTemplate must contain a Panel. 'Blacklight.Controls.Wpf.DragDockPanelHost' is not a Panel." 
I just want to make my ListView can Drag Drop and Order itself, i tried following this article
but not working as my desire at all.
Please help me.

Jul 5, 2012 at 6:16 PM

And if i use DragDockPanelHost.ItemTemplate:

<blacklight:DragDockPanelHost x:Name="dragDockPanelHostWithItemTemplate">
                    <blacklight:DragDockPanel Header="{Binding DisplayName}" Margin="10">
                            <TextBlock Foreground="White" Text="{Binding ViewContent}"/>

i got a weird bug with double Header :