/// <summary> /// Function called when dragged window leaves already docked window</summary> /// <param name="sender">Dockable window being dragged</param> /// <param name="e">Drag and drop arguments when window is dropped to be docked to dockpanel</param> public void DockDragLeave(object sender, DockDragDropEventArgs e) { DockIconsLayer.RemoveChild(m_dockTabIcon); if (m_dockPreviewShape != null) { DockIconsLayer.RemoveChild(m_dockPreviewShape); m_dockPreviewShape = null; } DockIconsLayer.CloseIfEmpty(); }
/// <summary> /// Function called when dragged window leaves already docked window</summary> /// <param name="sender">Dockable window being dragged</param> /// <param name="e">Drag and drop arguments when window is dropped to be docked to dockpanel</param> public void DockDragLeave(object sender, DockDragDropEventArgs e) { DockIconsLayer dockIconLayer = Root.DockIconsLayer; dockIconLayer.RemoveChild(m_dockLeftIcon); dockIconLayer.RemoveChild(m_dockRightIcon); dockIconLayer.RemoveChild(m_dockTopIcon); dockIconLayer.RemoveChild(m_dockBottomIcon); dockIconLayer.RemoveChild(m_dockTabIcon); if (m_dockPreviewShape != null) { Root.DockIconsLayer.RemoveChild(m_dockPreviewShape); m_dockPreviewShape = null; } dockIconLayer.CloseIfEmpty(); }