void DockItemEndDocking(object sender, DockItemDockingEventArgs e) { Debug.WriteLine("DockItemEndDocking: {0}", e.Item); var dg = e.DockTarget as DocumentGroup; if (dg == null) { e.Cancel = true; return; } }
private void DockItemDocking(object sender, DockItemDockingEventArgs e) { Debug.WriteLine("DockItemDocking: {0}", e.Item); Debug.WriteLine("\tDockTarget: {0} / {1}", e.DockTarget, e.DockTarget != null ? e.DockTarget.Name : ""); Debug.WriteLine("\tDockType: {0}", e.DockType); Debug.WriteLine("\tDragPoint: {0}", e.DragPoint); var dg = e.DockTarget as DocumentGroup; if (dg == null) { e.Cancel = true; return; } }