public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is byte[] b) { Color color = ColorTools.GetColor(b); return(ColorTools.GetColorStateList(color)); } return(value); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is byte[] b) { Color color = ColorTools.GetColor(b); return(ColorTools.GetColorStateList(color)); } return(value); }