Edit

Share via


UniformGrid.ArrangeOverride(Size) Method

Definition

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

protected:
 override System::Windows::Size ArrangeOverride(System::Windows::Size arrangeSize);
protected override System.Windows.Size ArrangeOverride (System.Windows.Size arrangeSize);
override this.ArrangeOverride : System.Windows.Size -> System.Windows.Size
Protected Overrides Function ArrangeOverride (arrangeSize As Size) As Size

Parameters

arrangeSize
Size

The Size of the area for the grid to use.

Returns

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

Remarks

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.

Applies to