更新整理
This commit is contained in:
@@ -4,12 +4,12 @@ using System.Windows.Data;
|
||||
|
||||
namespace WPFluent.Converters;
|
||||
|
||||
public class ColorToBrushConverter : IValueConverter
|
||||
internal 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)
|
||||
if (value is System.Windows.Media.Color color)
|
||||
{
|
||||
return new SolidColorBrush(color);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user