maui-linux/Xamarin.Forms.Core/LayoutAlignmentExtensions.cs

21 строка
386 B
C#
Исходник Обычный вид История

2016-03-22 23:02:25 +03:00
using System;
namespace Xamarin.Forms
{
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("align");
}
}
}