Sheas-Cealer/Convs/MainWinWidthConv.cs
2024-12-11 12:57:02 +08:00

17 lines
479 B
C#

using System;
using System.Globalization;
using System.Windows.Data;
namespace Sheas_Cealer.Convs;
internal class MainWinWidthConv : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
bool isAdmin = (bool)value;
return isAdmin ? 708 : 500;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => throw new NotImplementedException();
}