UniformGrid.ArrangeOverride(Size) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.