Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        /// <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;
        }
Beispiel #3
0
        private void OnWindowMoveFinished( object sender, WindowMoverEventArgs e )
        {
            DockState dockability = DetermineDockability( GetParentWindowRect(), 0.0 );

            UpdateState( dockability );
        }
Beispiel #4
0
        private void OnWindowMoveFinished(object sender, WindowMoverEventArgs e)
        {
            DockState dockability = DetermineDockability(GetParentWindowRect(), 0.0);

            UpdateState(dockability);
        }