Advertisement
Guest User

Untitled

a guest
Aug 24th, 2014
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. class StringFormatConverter : IMultiValueConverter
  2. {
  3.     public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
  4.     {
  5.         var format = (string)values[0];
  6.         return string.Format(format, values.Skip(1).ToArray());
  7.     }
  8.  
  9.     public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
  10.     {
  11.         throw new NotImplementedException();
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement