How to: Create a Simple Grid Layout with UniformGrid

At times you might want to create a grid layout where the controls that are contained in the grid are spaced evenly and automatically. You can easily create a simple grid layout with the UniformGrid container.

To create a simple grid layout with UniformGrid

  1. From the Toolbox, drag a UniformGrid container control onto your window.

  2. Add controls to the UniformGrid.

    The controls are spaced evenly and the size and layout of the grid adjusts to the number of controls automatically.

See Also

Concepts

WPF Container Controls Overview

Other Resources

WPF Container Controls