public virtual object Convert(object value, Type targetType, object parameter, CultureInfo culture) { return(new SolidColorBrush((bool)value ? (Color)ColorConverter.ConvertFromString("#FF84BB96") : Colors.Yellow)); }
internal static Color ColorFromHex(string colorHex) { return((Color?)ColorConverter.ConvertFromString(colorHex) ?? Colors.Transparent); }