Sic.Framework-Nanjing-Baishi/MECF.Framework.UI.Client/RecipeEditorLib/Converters/SetBackgroundBrushConvent.cs

21 lines
588 B
C#

using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;
namespace MECF.Framework.UI.Client.RecipeEditorLib.Converters
{
public class SetBackgroundBrushConvent : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return new SolidColorBrush((Color)value);
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}