I have a WPF app with the following subset of code for the main window:
<ad:DockingManager x:Name="dockManager" Grid.Row="1">
<ad:ResizingPanel Name="mainResizingPanel" Orientation="Horizontal">
<!- other stuff here -->
<ad:DocumentPane Name="documentPane" DragEnter="DocumentPaneDragEnter" AllowDrop="True" Drop="DocumentPaneDrop"></ad:DocumentPane>
</ad:ResizingPanel>
</ad:DockingManager>
I also have code to add DocumentContent
to the DocumentPane
.
documentPane.Items.Add(docContent);
My implemented drag and drop functionality only works once something has been added to the documentPane. How come the documentPane won't accept a drop until it has a child object?