周五喽

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.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
namespace GeekDesk.Converts
{
class DoubleToGridLength : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
double val = double.Parse(value.ToString());
return new GridLength(val);
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
GridLength val = (GridLength)value;
return double.Parse(val.ToString());
}
}
}