BooleanToColorConverter】的更多相关文章

public class BooleanToColorConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if ((bool)value) { return "Gray"; } return "Black"; } public object ConvertBack(obje…