forked from amkovkov/GranuSightSoftware2
refactor: OrientationToBoolConverter
This commit is contained in:
@@ -1,6 +1,3 @@
|
|||||||
using System.Globalization;
|
|
||||||
|
|
||||||
using Avalonia.Data;
|
|
||||||
using Avalonia.Data.Converters;
|
using Avalonia.Data.Converters;
|
||||||
using Avalonia.Layout;
|
using Avalonia.Layout;
|
||||||
|
|
||||||
@@ -8,6 +5,6 @@ namespace GSS2.UI.Core.Converters;
|
|||||||
|
|
||||||
public static class OrientationToBoolConverter
|
public static class OrientationToBoolConverter
|
||||||
{
|
{
|
||||||
public static readonly FuncValueConverter<Orientation, bool> IsVertical = new ((orientation) => orientation == Orientation.Vertical);
|
public static readonly FuncValueConverter<Orientation, bool> IsVertical = new((orientation) => orientation == Orientation.Vertical);
|
||||||
public static readonly FuncValueConverter<Orientation, bool> IsHorizontal = new ((orientation) => orientation == Orientation.Horizontal);
|
public static readonly FuncValueConverter<Orientation, bool> IsHorizontal = new((orientation) => orientation == Orientation.Horizontal);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user