SilverFlow.Controls.FloatingWindow.OnPositionPropertyChanged C# (CSharp) Method

OnPositionPropertyChanged() private static method

PositionProperty PropertyChangedCallback call back static function.
private static OnPositionPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject FloatingWindow object whose Position property is changed.
e System.Windows.DependencyPropertyChangedEventArgs DependencyPropertyChangedEventArgs which contains the old and new values.
return void
        private static void OnPositionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            FloatingWindow window = (FloatingWindow)d;

            if (window != null)
            {
                if (window.FloatingWindowHost.IsLayoutUpdated)
                    window.MoveWindow((Point)e.NewValue);
            }
        }
FloatingWindow