public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     if (InnerConverter != null)
     {
         value = InnerConverter.Convert(value, typeof(object), InnerConverterParameter, culture);
     }
     return(value == null ? string.Empty : string.Format((string)parameter, value));
 }
示例#2
0
 /// <see cref="IValueConverter.ConvertBack"/>
 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(InnerConverter.Convert(value, targetType, parameter, culture));
 }