public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { Brushes brush = value as Brushes; if (brush != null && brush.Equals(Brushes.Green)) { return(true); } else { return(false); } }