Beispiel #1
0
 public object Convert(object value, Type targetType,
                       object parameter, CultureInfo culture)
 {
     if (value is TypeEnum)
     {
         TypeEnum val = (TypeEnum)value;
         return(val.TypeToBrushFunc());
     }
     return(XamlResources.Black_ColorBrush);
 }