Compartilhar via


Como: Criar um Layout de Grade Simples com Grade Uniforme

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.

Consulte também

Conceitos

O WPF recipiente controles Visão geral

Outros recursos

Controles contêiner