Control.VerticalContentAlignment Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the vertical alignment of the control's content.
public:
property VerticalAlignment VerticalContentAlignment { VerticalAlignment get(); void set(VerticalAlignment value); };
VerticalAlignment VerticalContentAlignment();
void VerticalContentAlignment(VerticalAlignment value);
public VerticalAlignment VerticalContentAlignment { get; set; }
var verticalAlignment = control.verticalContentAlignment;
control.verticalContentAlignment = verticalAlignment;
Public Property VerticalContentAlignment As VerticalAlignment
<control VerticalContentAlignment="verticalAlignmentValue"/>
Property Value
One of the VerticalAlignment values. The default is Center
.
Remarks
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.
Applies to
See also
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro