周五喽

This commit is contained in:
liufei
2021-05-28 18:01:19 +08:00
parent 569b330976
commit 5faf6e11b2
16 changed files with 983 additions and 626 deletions

View File

@@ -0,0 +1,26 @@
using System;
using System.Globalization;
using System.Windows.Data;
namespace GeekDesk.Converts
{
public class MenuWidthConvert : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value != null && value.ToString().Length > 0)
{
return System.Convert.ToDouble(value.ToString()) - 10d;
}
else
{
return 0d;
}
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}