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)); }
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)); }