Share via


Device.FlowDirection Property

Definition

Caution

Use Microsoft.Maui.ApplicationModel.AppInfo.RequestedLayoutDirection instead.

Gets the flow direction on the device.

public:
 static property Microsoft::Maui::FlowDirection FlowDirection { Microsoft::Maui::FlowDirection get(); };
[System.Obsolete("Use Microsoft.Maui.ApplicationModel.AppInfo.RequestedLayoutDirection instead.")]
public static Microsoft.Maui.FlowDirection FlowDirection { get; }
[<System.Obsolete("Use Microsoft.Maui.ApplicationModel.AppInfo.RequestedLayoutDirection instead.")>]
static member FlowDirection : Microsoft.Maui.FlowDirection
Public Shared ReadOnly Property FlowDirection As FlowDirection

Property Value

The flow direction on the device. See Remarks.

Attributes

Remarks

The following contains a few important points about flow direction from Right-to-Left Localization. Developers should consult that document for more information about limitations of right-to-left support, and for requirements to implement right-to-left support on various target platforms.

The default value of FlowDirection for a visual element that has no parent is LeftToRight, even on platforms where FlowDirection is RightToLeft. Therefore, developers must deliberately opt in to right-to-left layout. Developers can choose right-to-left layout by setting the FlowDirection property of the root element to RightToLeft to chosse right-to-left layout, or to MatchParent to match the device layout.

All VisualElements that have a parent default to MatchParent.

Applies to