File: LayoutAlignmentExtensions.cs | Web Access |
Project: src\src\Controls\src\Core\Controls.Core.csproj (Microsoft.Maui.Controls) |
using System; namespace Microsoft.Maui.Controls { internal static class LayoutAlignmentExtensions { public static double ToDouble(this LayoutAlignment align) { switch (align) { case LayoutAlignment.Start: return 0; case LayoutAlignment.Center: return 0.5; case LayoutAlignment.End: return 1; } throw new ArgumentOutOfRangeException(nameof(align)); } } } |