Exemple #1
0
        public virtual object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            // note - Language ignored here!
            var toReturn = _wrapped.ConvertBack(value, targetType, parameter, CultureInfo.CurrentUICulture);

            return(MapIfSpecialValue(toReturn));
        }
Exemple #2
0
        public override void SetValue(IEnumerable <IMvxSourceStep> steps, object value)
        {
            var sourceStep = steps.First();
            var parameter  = GetParameterValue(steps);

            if (_valueConverter == null)
            {
                // null value converter always fails
                return;
            }
            var converted = _valueConverter.ConvertBack(value, sourceStep.SourceType, parameter,
                                                        CultureInfo.CurrentUICulture);

            sourceStep.SetValue(converted);
        }
        public virtual object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var toReturn = _wrapped.ConvertBack(value, targetType, parameter, culture);

            return(MapIfSpecialValue(toReturn));
        }
Exemple #4
0
 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(_wrapped.ConvertBack(value, targetType, parameter, culture));
 }