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
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, ...