Working with DockState and AutoHide, I am looking for the following things:
- Find out if the DockContent is in AutoHide mode
- Ability to toggle between 'regular' and AutoHide mode.
- Trigger an event when an AutoHide dock has come into view.
- Trigger an event when an AutoHide dock has 'left' and is now docked back into it's tab.
Answer Wiki:
IsAutoHide - get:
private WeifenLuo.WinFormsUI.Docking.DockState[] AutoHideStates = new WeifenLuo.WinFormsUI.Docking.DockState[] { WeifenLuo.WinFormsUI.Docking.DockState.DockBottomAutoHide, WeifenLuo.WinFormsUI.Docking.DockState.DockLeftAutoHide, WeifenLuo.WinFormsUI.Docking.DockState.DockRightAutoHide, WeifenLuo.WinFormsUI.Docking.DockState.DockTopAutoHide }; public bool IsAutoHide { get { return AutoHideStates.Contains(DockContent.DockState); } }
IsAutoHide - set: No code yet - basically iterate through the modes or use a dictionary of interchangable modes (i.e. DockBottomAutoHide to DockBottom)
I have no idea, but this looks interesting, might have the idea.
- I have no idea.