UniformGrid
UniformGrid is an interesting primitive panel, although its usefulness is questionable. It’s a simplified form of Grid in which all rows and columns are of size * and can’t be changed. Because of this, UniformGrid has two simple double properties to set the number of rows and columns rather than the more verbose RowDefinitions and ColumnDefinitions collections. It also has no attached properties; children are added in row-major order, and there can be only one child per cell.
Furthermore, if you don’t explicitly set the number of rows and columns (or if the number of children exceeds the explicit number of cells), UniformGrid automatically chooses suitable values. For example, it automatically places 2–4 elements in a 2x2 arrangement, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access