Compartilhar via


Como: Definir margens para um controle no criador de WPF

Margins represent the amount of fixed space between the edge of a control and the edge of a window. You can easily set or release margins for a control in the WPF Designer for Visual Studio.

Para definir ou versão as margens na superfície de design

  1. Drag a control to its desired location on a window. Note that on each side of the control there are either lines or stubs. The lines stretch from the edge of the control to the corresponding edge of the container.

  2. To set a margin, move over a stub until the pointer changes to a pointing finger.

  3. Click the stub. The stub expands to form a margin line and the margin is set.

  4. To release a margin, move over a line until the pointer changes to a pointing finger.

  5. Click the margin line. The line contracts to a stub and the margin for that side is released.

Para definir as margens naPropriedadesde janela Propriedades

  1. Selecione ou adicione um controle na janela.

  2. No janela Propriedades, encontrar o margem propriedade.

  3. Na coluna à direita, clique em drop-para baixo para exibir oeditorde margem. A ilustração a seguir mostra a margemdoeditor.

  4. Use os Auxílios visuais fornecidos peloeditor de margempara definir as margens desejadas.

Consulte também

Tarefas

Como: Definir margens de Elementos e Controles

Conceitos

Alinhamento no WPF Designer

Histórico de alterações

Date

History

Motivo

Março de 2011

Adicionadas informações sobre oeditorde margem.

Aprimoramento de informações.