Sheas-Cealer/Convs/MainWinWidthConv.cs
2024-10-06 17:39:47 +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 ? 700 : 500;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => throw new NotImplementedException();
}