示例#1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            DynamicLimiterStatus status          = (DynamicLimiterStatus)value;
            BrushCollection      brushCollection = BrushDictionaries.DynamicLimiterStatusBrushCollectionDictionary.GetBrushCollection(status);

            BrushCollectionProperty property = (BrushCollectionProperty)parameter;

            return(brushCollection.GetProperty(property));
        }
示例#2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            PositionControlStatus status          = (PositionControlStatus)value;
            BrushCollection       brushCollection = BrushDictionaries.PositionControlStatusBackgroundBrushCollectionDictionary.GetBrushCollection(status);

            BrushCollectionProperty property = (BrushCollectionProperty)parameter;

            return(brushCollection.GetProperty(property));
        }