July 2017
Beginner
466 pages
9h 37m
English
The UniformGrid panel is just like WrapPanel, but with a catch that, it will have child elements placed in uniform cells. The rows and columns in a UniformGrid have the same size. By default, the rows and columns autoresize to give space to more elements. The elements also resize automatically to accommodate themselves within that space:
<UniformGrid>
<Border Width="150" Height="40"
Background="DarkOrange" Margin="4"/>
<Border Width="150" Height="40"
Background="DarkOrange" Margin="4"/>
.
.
.
<Border Width="150" Height="40"
Background="DarkOrange" Margin="4"/>
<Border Width="150" Height="40"
Background="DarkOrange" Margin="4"/>
</UniformGrid>
The following diagram is a UniformGrid panel, ...
Read now
Unlock full access