private void AutoHide_Click(object sender, EventArgs e) { DockPane.DockState = DockHelper.ToggleAutoHideState(DockPane.DockState); if (DockHelper.IsDockStateAutoHide(DockPane.DockState)) { DockPane.DockPanel.ActiveAutoHideContent = null; DockPane.NestedDockingStatus.NestedPanes.SwitchPaneWithFirstChild(DockPane); if (DockPane.CaptionText == "Transaction" || (DockPane.ActiveContent).DockHandler.Form.Text == "Transaction" || (DockPane.ActiveContent).DockHandler.Form.Name == "frmTransaction") { DockPane.DockPanel.Height = 25; } else { DockPane.DockPanel.Width = 25; } } else { if (DockPane.CaptionText == "Transaction" || (DockPane.ActiveContent).DockHandler.Form.Text == "Transaction" || (DockPane.ActiveContent).DockHandler.Form.Name == "frmTransaction") { DockPane.DockPanel.Height = 225; } else { DockPane.DockPanel.Width = 330; } } }
private void ResetAutoHidePortion(DockState oldState, DockState newState) { if (oldState == newState || DockHelper.ToggleAutoHideState(oldState) == newState) { return; } switch (newState) { case DockState.DockTop: case DockState.DockTopAutoHide: AutoHidePortion = DockPanel.DockTopPortion; break; case DockState.DockLeft: case DockState.DockLeftAutoHide: AutoHidePortion = DockPanel.DockLeftPortion; break; case DockState.DockBottom: case DockState.DockBottomAutoHide: AutoHidePortion = DockPanel.DockBottomPortion; break; case DockState.DockRight: case DockState.DockRightAutoHide: AutoHidePortion = DockPanel.DockRightPortion; break; } }
private void AutoHide_Click(object sender, EventArgs e) { if (!DockPane.IsAutoHide) { DockPane.ActiveContent.DockHandler.GiveUpFocus(); } DockPane.DockState = DockHelper.ToggleAutoHideState(DockPane.DockState); }
private void AutoHide_Click(object sender, EventArgs e) { DockPane.DockState = DockHelper.ToggleAutoHideState(DockPane.DockState); if (DockHelper.IsDockStateAutoHide(DockPane.DockState)) { DockPane.DockPanel.ActiveAutoHideContent = null; } }
private void AutoHide_Click(object sender, EventArgs e) { DockPane.DockState = DockHelper.ToggleAutoHideState(DockPane.DockState); if (!DockPane.IsAutoHide) { DockPane.Activate(); } }
private void AutoHide_Click(object sender, EventArgs e) { DockPane.DockState = DockHelper.ToggleAutoHideState(DockPane.DockState); if (DockHelper.IsDockStateAutoHide(DockPane.DockState)) { DockPane.DockPanel.ActiveAutoHideContent = null; DockPane.NestedDockingStatus.NestedPanes.SwitchPaneWithFirstChild(DockPane); } }
public static void ToggleAutoHide(DockContent form) { if (form.DockState == DockState.Unknown) { return; } if (form.DockState == DockState.Document) { return; } if (form.DockState == DockState.Float) { return; } if (form.DockState == DockState.Hidden) { return; } DockState newState = DockHelper.ToggleAutoHideState(form.Pane.DockState); form.Pane.SetDockState(newState); }
private void AutoHide_Click(object sender, EventArgs e) { this.DockPane.DockState = DockHelper.ToggleAutoHideState(this.DockPane.DockState); }