src/Foundation/Presentation/Gimela.Presentation.Controls/Controls/MDI/MDIChild.cs
/// <summary>
/// Dependency property event once the position value has changed.
/// </summary>
/// <param name="sender">The sender.</param>
/// <param name="e">The <see cref="System.Windows.DependencyPropertyChangedEventArgs"/> instance containing the event data.</param>
Dependency property event once the position value has changed.
Dependency property event once the position value has changed .
private static void PositionValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
    {
      if ((Point)e.NewValue == (Point)e.OldValue)
        return;
      MDIChild mdiChild = (MDIChild)sender;
      Point newPosition = (Point)e.NewValue;
      Canvas.SetTop(mdiChild, newPosition.Y < 0 ? 0 : newPosition.Y);
      Canvas.SetLeft(mdiChild, newPosition.X < 0 ? 0 : newPosition.X);
    }
private static void PositionValueChanged ( DependencyObject sender , DependencyPropertyChangedEventArgs e ) { if ( ( Point ) e . NewValue == ( Point ) e . OldValue ) return ; MDIChild mdiChild = ( MDIChild ) sender ; Point newPosition = ( Point ) e . NewValue ; Canvas . SetTop ( mdiChild , newPosition . Y < 0 ? 0 : newPosition . Y ) ; Canvas . SetLeft ( mdiChild , newPosition . X < 0 ? 0 : newPosition . X ) ; }
Dependency property event once the position value has changed.
Dependency property event once the position value has changed .
sender
DependencyObject
None
e
DependencyPropertyChangedEventArgs
The  instance containing the event data.
The instance containing the event data .