/// <summary> /// Constructor /// </summary> /// <param name="host">host window</param> public FormsDocker(IWin32Window host) { _host = new FormWrapper(host, 14, 4); _guider = new DockGuider(_host); _layout = new DockLayout(_host); _autohide = new Autohide(_host, 9, _animationCommand); _layout.BeginMoveByMouse += OnPositionerBeginMoveByMouse; _layout.MoveByMouse += OnPositionerMoveByMouse; _layout.EndMoveByMouse += OnPositionerEndMoveByMouse; _layout.DestroyFormsTabbedView += OnDestroyFormsTabbedView; _layout.ShowFloatingWindows += OnShowFloatingWindows; _autohide.SetHostContainerDock += OnSetHostContainerDock; _guider.ApplyDock += OnApplyDock; _animationTimer.Tick += OnTimedAnimation; _animationTimer.Interval = 50; _animationTimer.Enabled = true; _focusDetector.ControlGotFocus += OnControlGotFocus; _focusDetector.MessageFiltered += OnMessageFiltered; Application.AddMessageFilter(_focusDetector); }
/// <summary> /// Constructor /// </summary> /// <param name="host">host window</param> public FormsDocker(IWin32Window host) { _host = new FormWrapper(host, 14, 4); _guider = new DockGuider (_host); _layout = new DockLayout (_host); _autohide = new Autohide (_host, 9, _animationCommand); _layout.BeginMoveByMouse += OnPositionerBeginMoveByMouse; _layout.MoveByMouse += OnPositionerMoveByMouse; _layout.EndMoveByMouse += OnPositionerEndMoveByMouse; _layout.DestroyFormsTabbedView += OnDestroyFormsTabbedView; _layout.ShowFloatingWindows += OnShowFloatingWindows; _autohide.SetHostContainerDock += OnSetHostContainerDock; _guider.ApplyDock += OnApplyDock; _animationTimer.Tick += OnTimedAnimation; _animationTimer.Interval = 50; _animationTimer.Enabled = true; _focusDetector.ControlGotFocus += OnControlGotFocus; _focusDetector.MessageFiltered += OnMessageFiltered; Application.AddMessageFilter(_focusDetector); }