Reorganization of files

This commit is contained in:
2020-04-21 20:52:55 +02:00
parent 441d1d2010
commit a21110fba9
28 changed files with 79 additions and 48 deletions

View File

@@ -0,0 +1,20 @@
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
namespace ModernWpfPlayground
{
public class PixelsToGridLengthConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return value is double d ? new GridLength(d) : new GridLength(1.0, GridUnitType.Auto);
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}