コード例 #1
0
        private void OnFloatingWindowCloseClicked(object sender, UniqueNamesEventArgs e)
        {
            // Events are generated from the parent docking manager
            KryptonDockingManager dockingManager = DockingManager;

            dockingManager?.CloseRequest(e.UniqueNames);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 /// <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);
 }