ArcGISPortalViewer.Common.RichTextColumns.ArrangeOverride C# (CSharp) Method

ArrangeOverride() protected method

Arranges the original content and all extra columns.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize Windows.Foundation.Size Defines the size of the area the children must be arranged /// within.
return Windows.Foundation.Size
        protected override Size ArrangeOverride(Size finalSize)
        {
            double maxWidth = 0;
            double maxHeight = 0;
            foreach (var child in Children)
            {
                child.Arrange(new Rect(maxWidth, 0, child.DesiredSize.Width, finalSize.Height));
                maxWidth += child.DesiredSize.Width;
                maxHeight = Math.Max(maxHeight, child.DesiredSize.Height);
            }
            return new Size(maxWidth, maxHeight);
        }