using System; using System.Windows.Data; using System.Windows.Media; namespace DTS.Common.Converters { public class FaultedColorConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value is bool b) { if (b) { return BrushesAndColors.Brush_ApplicationStatus_Failed.Color; } else { return BrushesAndColors.Brush_ApplicationStatus_Complete.Color; } } return Brushes.Transparent.Color; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return null; } } }