Share via


XRVerticalAlignment (Compact 2013)

3/28/2014

This structure contains members that describe how a child element is vertically positioned inside a parent layout slot.

Syntax

enum XRVerticalAlignment{
    XRVerticalAlignment_Top=0,
    XRVerticalAlignment_Center=1,
    XRVerticalAlignment_Bottom=2,
    XRVerticalAlignment_Stretch=3,
};

Members

  • XRVerticalAlignment_Top
    The child element is aligned to the top of the parent element slot.
  • XRVerticalAlignment_Center
    The child element is aligned at the center of the parent element slot.
  • XRVerticalAlignment_Bottom
    The child element is aligned to the bottom of the parent element slot.
  • XRVerticalAlignment_Stretch
    The element is stretched vertically to fill the layout slot of the parent element.

Remarks

Height and width properties that are explicitly set on an element take precedence over the **XRVerticalAlignment_Stretch****property value.

.NET Framework Equivalent

System.Windows.VerticalAlignment

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

XAML for Windows Embedded Enumerations
IXRControl::GetVerticalContentAlignment
IXRControl::SetVerticalContentAlignment
IXRFrameworkElement::GetVerticalAlignment
IXRFrameworkElement::SetVerticalAlignment