/// <summary> /// Occurs just before a dock operation takes place. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="arg">The event data with information about the type.</param> private void DockingManager1_DockStateChanging(object sender, DockStateChangeEventArgs arg) { if (arg.NewState == DockState.Float) { arg.Handled = true; this.dockingManager1.ResumeLayout(); } }
private void DockingManager1_DockStateChanged(object sender, DockStateChangeEventArgs arg) { if (dockingManager1.GetState(teamExplorer) == DockState.Float) { (teamExplorer.Controls[0] as Label).Text = "Panel can be docked at center of any window"; } else { ((teamExplorer.Controls[0]) as Label).Text = "All the dock hints will be collapsed here since the DockAbility is None"; } }