Skip to main content

UniformGrid

The UniformGrid divides the available space evenly in both directions, into cells. You can specify how many divisions to use, and these can be different in either direction.

Useful Properties

You will probably use these properties most often:

PropertyDescription
RowsInteger. Sets the number of equal rows in the height.
ColumnsInteger. Sets the number of equal columns in the width

Example

<UniformGrid Rows="1" Columns="3" Width="300" Height="200">
<Rectangle Fill="navy" />
<Rectangle Fill="white" />
<Rectangle Fill="red" />
</UniformGrid>

More Information

info

For the complete API documentation about this control, see here.

info

View the source code on GitHub UniformGrid.cs