19 using System.Collections.Generic;
43 [ValueConversion(typeof(
string), typeof(
string))]
46 #region IValueConverter Members 48 public object Convert(
object value, Type targetType,
object parameter,
49 System.Globalization.CultureInfo culture)
51 if (targetType != typeof(
string))
52 throw new InvalidOperationException(
"The target must be a string");
54 return ((
string)value).ToUpper();
57 public object ConvertBack(
object value, Type targetType,
object parameter,
58 System.Globalization.CultureInfo culture)
60 throw new NotSupportedException();
Converts a string to all capitals.