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); }
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); }