This documentation is archived and is not being maintained.

UniformGrid.ArrangeOverride Method

Defines the layout of the UniformGrid by distributing space evenly among all of the child elements.

Namespace: System.Windows.Controls.Primitives
Assembly: PresentationFramework (in presentationframework.dll)

protected override Size ArrangeOverride (
	Size arrangeSize
protected Size ArrangeOverride (
	Size arrangeSize
protected override function ArrangeOverride (
	arrangeSize : Size
) : Size
You cannot use methods in XAML.



The Size of the area for the grid to use.

Return Value

The actual Size of the grid that is rendered to display the child elements that are visible.

The arrangeSize parameter defines the space in the layout area that is available for the grid. For example, if there are two rows and four columns in a grid, the possible height for each cell is 0.5*arrangeSizeHeight and the maximum width is 0.25*arrangeSizeWidth. For these calculations, arrangeSizeHeight is the Height value of the arrangeSize parameter and arrangeSizeWidth is the Width value of the arrangeSize parameter.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0