Compartir a través de


VerticalAlignment Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Describes how a child element is vertically positioned or stretched within a parent's layout slot.

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

Syntax

'Declaration
Public Enumeration VerticalAlignment
public enum VerticalAlignment
<object property="enumerationvalue"/>

Members

Member name Description
Supported by Silverlight for Windows Phone Top The element is aligned to the top of the parent's layout slot.
Supported by Silverlight for Windows Phone Center The element is aligned to the center of the parent's layout slot.
Supported by Silverlight for Windows Phone Bottom The element is aligned to the bottom of the parent's layout slot.
Supported by Silverlight for Windows Phone Stretch The element is stretched to fill the entire layout slot of the parent element.

Remarks

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

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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

See Also

Reference