Поделиться через


IXRFrameworkElement::SetVerticalAlignment (Compact 2013)

3/28/2014

This method sets the characteristics that determine the vertical alignment of this framework element when it is displayed inside a parent element, such as a panel or items control.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetVerticalAlignment(
    __in XRVerticalAlignment VerticalAlignment
) = 0; 

Parameters

  • VerticalAlignment
    [in] XRVerticalAlignment member that indicates the new vertical alignment setting.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When the Height and Width dependency properties are explicitly set on an element by calling IXRFrameworkElement::SetHeight or IXRFrameworkElement::SetWidth, these measurements take higher precedent in the layout system, and they will override the effects of setting XRVerticalAlignment to XRVerticalAlignment_Stretch.

IXRCanvas does not use XRVerticalAlignment when it composes the layout because IXRCanvas is based on absolute positioning. Generally, the value of XRVerticalAlignment is potentially treated differently by any object that can have one or more IXRFrameworkElement derived object classes as child elements.

.NET Framework Equivalent

System.Windows.FrameworkElement.VerticalAlignment

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRFrameworkElement
IXRFrameworkElement::GetVerticalAlignment