0
 <Grid>  

<Blacklight_Controls:DragDockPanelHost >
          <ItemsControl ItemsSource="{Binding Path=DashBoardItemList}">
                        <ItemsControl.ItemTemplate>
                            <DataTemplate>
                                <Blacklight_Controls:DragDockPanel Header="Titel"/>
                            </DataTemplate>
                        </ItemsControl.ItemTemplate>
                    </ItemsControl>
                </Blacklight_Controls:DragDockPanelHost>
       </Grid>

This appear like this..

The newly generated DragDockPanels by ItemsControl, added inside another DragDockPanel. Not the DragDockPanelHost. Because DragDockPanels cannot be move. What I need is , generated DragDockPanes must be directly add to the DragDockPanelHost, no inside a another DragDockPanel.

Dinusha
  • 696
  • 1
  • 14
  • 27

1 Answers1

0

I had the same problem. Removing the ItemTemplate produced the effect I wanted.

<blacklight:DragDockPanelHost x:Name="Fields" >
        <ItemsControl>
            <blacklight:DragDockPanel Style="{StaticResource DragDockPanelStyle}">
                <ContentControl cal:View.Model="{Binding}" />
            </blacklight:DragDockPanel>
        </ItemsControl>

    </blacklight:DragDockPanelHost>
Benny Thomas
  • 151
  • 4
  • 4