Compartilhar via


IXRFrameworkElement::SetFlowDirection (Compact 2013)

3/28/2014

This method sets the direction that text and other UI elements flow within any parent element that controls their layout.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetFlowDirection(
    __in XRFlowDirection FlowDirection
) = 0;

Parameters

  • FlowDirection
    [in] Pointer to an XRFlowDirection enumerated value that specifies the direction that text and other UI elements flow within their parent element. The default is XRFlowDirection_LeftToRight.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The FlowDirection property is a dependency property.

Because of property-value inheritance, using the IXRFrameworkElement::SetFlowDirection method on an element can potentially set the FlowDirection property on all child elements that did not set FlowDirection locally or through other means such as styles.

Flow direction is not automatically set as part of any application locale information, because an element might contain content that is not necessarily intended to obey the general flow direction that the locale information implies.

.NET Framework Equivalent

System.Windows.FrameworkElement.FlowDirection (.NET Framework 3.5)

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRFrameworkElement