private void OnFloatingWindowCloseClicked(object sender, UniqueNamesEventArgs e) { // Events are generated from the parent docking manager KryptonDockingManager dockingManager = DockingManager; dockingManager?.CloseRequest(e.UniqueNames); }
private void OnDockspacePagesDoubleClicked(object sender, UniqueNamesEventArgs e) { // Generate event so that the switch from docked to floating is handled for the provided list of named pages KryptonDockingManager dockingManager = DockingManager; dockingManager?.SwitchDockedToFloatingWindowRequest(e.UniqueNames); }
private void OnFloatspacePagesDoubleClicked(object sender, UniqueNamesEventArgs e) { // If the number of pages to be converted into a separate floating window is less than the // total number of visible pages then we allow the change to occur. Otherwise it would cause // all pages to be removed into another window which would be pointless. if (e.UniqueNames.Count < FloatspaceControl.PageVisibleCount) { KryptonDockingManager dockingManager = DockingManager; dockingManager?.SwitchFloatingToFloatingWindowRequest(e.UniqueNames); } }
/// <summary> /// Raises the WindowCloseClicked event. /// </summary> /// <param name="e">An UniqueNamesEventArgs that contains the event data.</param> protected virtual void OnWindowCloseClicked(UniqueNamesEventArgs e) { WindowCloseClicked?.Invoke(this, e); }