Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class StringFormatConverter : IMultiValueConverter
- {
- public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
- {
- var format = (string)values[0];
- return string.Format(format, values.Skip(1).ToArray());
- }
- public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
- {
- throw new NotImplementedException();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement