Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

VerticalAlignment Enumeration

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)
public enum VerticalAlignment
<object property="enumerationvalue"/>
Member nameDescription
Supported by Silverlight for Windows PhoneTopThe element is aligned to the top of the parent's layout slot.
Supported by Silverlight for Windows PhoneCenterThe element is aligned to the center of the parent's layout slot.
Supported by Silverlight for Windows PhoneBottomThe element is aligned to the bottom of the parent's layout slot.
Supported by Silverlight for Windows PhoneStretchThe element is stretched to fill the entire layout slot of the parent element.

Height and Width properties that are explicitly set on an element 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.