Exemple #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.GetConnectErrorColor(bytes)));
            }

            return(DependencyProperty.UnsetValue);
        }