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:
Property | Description |
---|---|
Rows | Integer. Sets the number of equal rows in the height. |
Columns | Integer. 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
к сведению
For the complete API documentation about this control, see here.
к сведению
View the source code on GitHub UniformGrid.cs