예제 #1
0
 public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     if (value is long bytes && bytes > 0)
     {
         return(new SolidColorBrush(ColorConvert.GetSpeedColor(bytes)));
     }
     return(DependencyProperty.UnsetValue);
 }