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 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.

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)
Community Content Add
Annotations FAQ