Compartilhar via


Como: Alinhar para ambas as linhas de base de texto e margens

The WPF Designer for Visual Studio displays snaplines to help you align WPF controls. The WPF Designer also displays snaplines to help you align the text baselines of text-based WPF controls. Você pode usar linhas de ajuste para alinhar as linhas de base do texto dos controles do WPF a seguir: Button, CheckBox, ComboBox, GroupBox, Label, ListBox, TextBox, TextBlock, RadioButton, e RichTextBox.

To align edges of controls

  • On a window with at least two controls, drag or resize one of the controls so that the edge is aligned with another control. When the edges are aligned, a snapline appears indicating alignment. When snaplines appear, you will also see a number near the snapline that changes as you drag the control. The number indicates the distance between the edge of the current control and the edge of the other control."

To align text baselines of text-based controls

  • On a window with at least two text-based controls listed earlier in this topic, drag one of the text-based controls so that the text baseline is aligned with the text baseline of another text-based control. When the text baselines are aligned, a snapline appears indicating alignment.

Consulte também

Tarefas

Como: Desativar Snaplines

Conceitos

Alinhamento no WPF Designer