Export (0) Print
Expand All
Expand Minimize

HorizontalAlignment Enumeration

Indicates where an element should be displayed on the horizontal axis relative to the allocated layout slot of the parent element.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

public enum HorizontalAlignment
<object property="enumMemberName"/>

Member nameDescription
Supported by Silverlight for Windows PhoneLeftAn element aligned to the left of the layout slot for the parent element.
Supported by Silverlight for Windows PhoneCenterAn element aligned to the center of the layout slot for the parent element.
Supported by Silverlight for Windows PhoneRightAn element aligned to the right of the layout slot for the parent element.
Supported by Silverlight for Windows PhoneStretchAn element stretched to fill the entire layout slot of the parent element.

Stretch is the default layout behavior.

Element Height and Width properties that are explicitly set take precedence over the Stretch property value.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft