src/Foundation/Presentation/Gimela.Presentation.Controls/Controls/MDI/MDIContainer.cs
/// <summary>
/// Invalidates the size checking to see if the furthest
/// child point exceeds the current height and width.
/// </summary>
Invalidates the size checking to see if the furthest
child point exceeds the current height and width.
Invalidates the size checking to see if the furthest child point exceeds the current height and width .
internal void InvalidateSize()
    {
      Point largestPoint = new Point(0, 0);
      for (int i = 0; i < Children.Count; i++)
      {
        MDIChild mdiChild = Children[i];
        Point farPosition = new Point(mdiChild.Position.X + mdiChild.Width, mdiChild.Position.Y + mdiChild.Height);
        if (farPosition.X > largestPoint.X)
          largestPoint.X = farPosition.X;
        if (farPosition.Y > largestPoint.Y)
          largestPoint.Y = farPosition.Y;
      }
      if (_windowCanvas.Width != largestPoint.X)
        _windowCanvas.Width = largestPoint.X;
      if (_windowCanvas.Height != largestPoint.Y)
        _windowCanvas.Height = largestPoint.Y;
    }
internal void InvalidateSize ( ) { Point largestPoint = new Point ( 0 , 0 ) ; for ( int i = 0 ; i < Children . Count ; i ++ ) { MDIChild mdiChild = Children [ i ] ; Point farPosition = new Point ( mdiChild . Position . X + mdiChild . Width , mdiChild . Position . Y + mdiChild . Height ) ; if ( farPosition . X > largestPoint . X ) largestPoint . X = farPosition . X ; if ( farPosition . Y > largestPoint . Y ) largestPoint . Y = farPosition . Y ; } if ( _windowCanvas . Width != largestPoint . X ) _windowCanvas . Width = largestPoint . X ; if ( _windowCanvas . Height != largestPoint . Y ) _windowCanvas . Height = largestPoint . Y ; }
Invalidates the size checking to see if the furthest
child point exceeds the current height and width.
Invalidates the size checking to see if the furthest child point exceeds the current height and width .