public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value == null) { return(null); } return(StaticObjectConverter.GetObjectByPropertyName <SolidColorBrush>(typeof(Brushes), value.ToString()).Color); }
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return(StaticObjectConverter.GetNameByObj(typeof(Brushes), value, "Color")); }