Control.HorizontalContentAlignment property

Expand Minimize
This topic has not yet been rated - Rate this topic

Gets or sets the horizontal alignment of the control's content.

Syntax


public HorizontalAlignment HorizontalContentAlignment { get; set; }


<control HorizontalContentAlignment="horizontalAlignmentMemberName"/>

XAML Values

horizontalAlignmentMemberName

A named constant of the HorizontalAlignment enumeration, such as Stretch.

Property value

Type: HorizontalAlignment

One of the HorizontalAlignment values. The default is Center.

Remarks

Each control might apply this property differently based on its visual template. This property only affects a control whose template uses the HorizontalContentAlignment property as a parameter. On other controls, this property has no effect. For more info about visual templates, see the Template property.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Control

 

 

Build date: 3/12/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.