-api-id | -api-type |
---|---|
P:Windows.UI.Xaml.Controls.Control.VerticalContentAlignment |
winrt property |
Gets or sets the vertical alignment of the control's content.
<control VerticalContentAlignment="verticalAlignmentValue"/>
- verticalAlignmentValue
- verticalAlignmentValueA named constant of the VerticalAlignment enumeration, such as Stretch.
One of the VerticalAlignment values. The default is Center
.
Each control might apply this property differently based on the Style setters for the control's implicit style, and its visual template. Also, the apparent "default value" of each individual control used in UI can be different.
A value for the VerticalContentAlignment property only affects layout behavior for a control when its template uses the VerticalContentAlignment property as the source of a VerticalAlignment value for presenters or content areas within. On other controls, setting VerticalContentAlignment has no effect. For more info about visual templates for controls, see the reference for Control.Template and Control templates.
HorizontalContentAlignment, FrameworkElement.VerticalAlignment, Alignment, margin, and padding, Control templates