CK.WindowManager.WindowManager.Move C# (CSharp) Method

Move() public method

public Move ( IWindowElement window, double top, double left ) : IManualInteractionResult
window IWindowElement
top double
left double
return IManualInteractionResult
        public virtual IManualInteractionResult Move( IWindowElement window, double top, double left )
        {
            if( Dispatcher.CurrentDispatcher != Application.Current.Dispatcher ) throw new InvalidOperationException( "This method should only be called by the Application Thread." );

            WindowElementData data = null;
            if( _dic.TryGetValue( window, out data ) )
            {
                WindowElementData dataSnapshot = (WindowElementData)data.Clone();

                window.Move( top, left );

                return new MoveResult( this, data, dataSnapshot );
            }
            return NullResult.Default;
        }