/// <summary> /// Gets invoked when window move is initiated. Deriving class must ensure to call the /// base implementation of this function to ensure correct operation of the window /// mover object. /// </summary> /// <returns></returns> protected virtual bool OnMoveStarted() { if (MoveStarted == null) { return(true); } var eventArgs = new WindowMoverEventArgs(); MoveStarted(this, eventArgs); return(!eventArgs.IsMoveCancelled); }
/// <summary> /// Gets invoked when window move is initiated. Deriving class must ensure to call the /// base implementation of this function to ensure correct operation of the window /// mover object. /// </summary> /// <returns></returns> protected virtual bool OnMoveStarted() { if( MoveStarted == null ) return true; var eventArgs = new WindowMoverEventArgs(); MoveStarted( this, eventArgs ); return !eventArgs.IsMoveCancelled; }
private void OnWindowMoveFinished( object sender, WindowMoverEventArgs e ) { DockState dockability = DetermineDockability( GetParentWindowRect(), 0.0 ); UpdateState( dockability ); }
private void OnWindowMoveFinished(object sender, WindowMoverEventArgs e) { DockState dockability = DetermineDockability(GetParentWindowRect(), 0.0); UpdateState(dockability); }