src/Foundation/Presentation/Gimela.Presentation.Controls/Controls/MDI/MDIContainer.cs
/// <summary>
/// Handles the Loaded event of the MdiContainer control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
Handles the Loaded event of the MdiContainer control.
Handles the Loaded event of the MdiContainer control .
private void MdiContainer_Loaded(object sender, RoutedEventArgs e)
    {
      Window wnd = Window.GetWindow(this);
      if (wnd != null)
      {
        wnd.Activated += MdiContainer_Activated;
        wnd.Deactivated += MdiContainer_Deactivated;
      }
      _windowCanvas.Width = _windowCanvas.ActualWidth;
      _windowCanvas.Height = _windowCanvas.ActualHeight;
      _windowCanvas.VerticalAlignment = VerticalAlignment.Top;
      _windowCanvas.HorizontalAlignment = HorizontalAlignment.Left;
      InvalidateSize();
    }
private void MdiContainer_Loaded ( object sender , RoutedEventArgs e ) { Window wnd = Window . GetWindow ( this ) ; if ( wnd != null ) { wnd . Activated += MdiContainer_Activated ; wnd . Deactivated += MdiContainer_Deactivated ; } _windowCanvas . Width = _windowCanvas . ActualWidth ; _windowCanvas . Height = _windowCanvas . ActualHeight ; _windowCanvas . VerticalAlignment = VerticalAlignment . Top ; _windowCanvas . HorizontalAlignment = HorizontalAlignment . Left ; InvalidateSize ( ) ; }
Handles the Loaded event of the MdiContainer control.
Handles the Loaded event of the MdiContainer control .
sender
object
The source of the event.
The source of the event .
e
RoutedEventArgs
The  instance containing the event data.
The instance containing the event data .