Workspace cell event data.
Inheritance: System.EventArgs
Example #1
0
        private void OnWorkspaceCellAdding(object sender, WorkspaceCellEventArgs e)
        {
            // Remove the close and context menu buttons from the navigator cell
            e.Cell.Button.CloseButtonDisplay = ButtonDisplay.Hide;
            e.Cell.Button.ContextButtonDisplay = ButtonDisplay.Hide;
            e.Cell.Button.CloseButtonAction = CloseButtonAction.None;

            // Update with currently requested mode
            UpdateCell(e.Cell);
        }
 private void OnFloatspaceCellRemoved(object sender, WorkspaceCellEventArgs e)
 {
     e.Cell.TabVisibleCountChanged -= new EventHandler(OnTabVisibleCountChanged);
 }
        private void OnDockspaceCellLosesFocus(object sender, WorkspaceCellEventArgs e)
        {
            // Check to see if we allowed to perform operations
            if (Disposing || IsDisposed)
                return;

            // No longer need the lose focus because we have been notified
            DockspaceControl.CellLosesFocus -= new EventHandler<WorkspaceCellEventArgs>(OnDockspaceCellLosesFocus);

            // Action depends on the current state
            switch (_state)
            {
                case DockingAutoHiddenShowState.Hidden:
                case DockingAutoHiddenShowState.SlidingIn:
                    // No sliding required, nothing to do
                    break;
                case DockingAutoHiddenShowState.SlidingOut:
                case DockingAutoHiddenShowState.Showing:
                    MakeSlideIn();
                    break;
            }
        }
Example #4
0
 private void kryptonDockableWorkspace_WorkspaceCellAdding(object sender, WorkspaceCellEventArgs e)
 {
     e.Cell.Button.CloseButtonAction = CloseButtonAction.HidePage;
 }
Example #5
0
 private void kryptonWorkspace_WorkspaceCellAdding(object sender, WorkspaceCellEventArgs e)
 {
     // Set the initial mode to match the radio button selection
     e.Cell.NavigatorMode = _mode;
 }
        private void OnSpaceCellAdding(object sender, WorkspaceCellEventArgs e)
        {
            RaiseCellAdding(e.Cell);

            // Need to generate the removed event to match this adding event
            e.Cell.Disposed += new EventHandler(OnSpaceCellRemoved);
        }
Example #7
0
 private void kryptonWorkspace_WorkspaceCellAdding(object sender, WorkspaceCellEventArgs e)
 {
     // Remove the context menu from the tabs bar, as it is not relevant to this sample
     e.Cell.Button.ContextButtonDisplay = ButtonDisplay.Hide;
 }
Example #8
0
        private void kryptonWorkspace_WorkspaceCellAdding(object sender, WorkspaceCellEventArgs e)
        {
            // Do not show any navigator level buttons
            e.Cell.Button.CloseButtonDisplay = ButtonDisplay.Hide;
            e.Cell.Button.ButtonDisplayLogic = ButtonDisplayLogic.None;

            // Do not need the secondary header for header modes
            e.Cell.Header.HeaderVisibleSecondary = false;
        }
Example #9
0
        private void kryptonWorkspace2_WorkspaceCellAdding(object sender, WorkspaceCellEventArgs e)
        {
            // Hide the buttons we do not need for this sample
            e.Cell.Button.CloseButtonDisplay = ButtonDisplay.Hide;
            e.Cell.Button.ContextButtonDisplay = ButtonDisplay.Hide;

            // We want to provide header groups for the second workspace
            e.Cell.NavigatorMode = NavigatorMode.HeaderBarCheckButtonHeaderGroup;
            e.Cell.Header.HeaderVisibleSecondary = false;
        }
Example #10
0
 private void kryptonWorkspace1_WorkspaceCellAdding(object sender, WorkspaceCellEventArgs e)
 {
     // Hide the buttons we do not need for this sample
     e.Cell.Button.CloseButtonDisplay = ButtonDisplay.Hide;
     e.Cell.Button.ContextButtonDisplay = ButtonDisplay.Hide;
 }