File: LayoutDirectionExtensions.cs
Web Access
Project: src\src\Controls\src\Core\Controls.Core.csproj (Microsoft.Maui.Controls)
using System;
using Microsoft.Maui.ApplicationModel;
 
namespace Microsoft.Maui.Controls
{
	public static class LayoutDirectionExtensions
	{
		public static FlowDirection ToFlowDirection(this LayoutDirection layoutDirection) =>
			layoutDirection == LayoutDirection.RightToLeft
				? FlowDirection.RightToLeft
				: FlowDirection.LeftToRight;
	}
}