IndexConverter.cs 479 B

123456789101112131415161718192021
  1. using System;
  2. using System.Globalization;
  3. using System.Windows.Data;
  4. namespace FurnaceUI.Converter
  5. {
  6. public class IndexConverter : IValueConverter
  7. {
  8. public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  9. {
  10. int index = (int)value +1;
  11. return index;
  12. }
  13. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  14. {
  15. throw new NotImplementedException();
  16. }
  17. }
  18. }