整理控件库

This commit is contained in:
GG Z
2025-05-05 17:04:06 +08:00
parent 74532b77be
commit 3eaad7566e
283 changed files with 2156 additions and 17846 deletions

View File

@@ -0,0 +1,21 @@
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;
namespace ShrlAlgoToolkit.Mvvm.Converters;
public class ColorToBrushConverter: IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
//var color = (SelectedColor)value;
if (value is System.Windows.Media.Color color)
{
return new SolidColorBrush(color);
}
return Binding.DoNothing;
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{ throw new NotImplementedException(); }
}