WidthMoreConvertor.cs 746 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows.Data;
  6. namespace Aitex.Core.UI.Converters
  7. {
  8. public class WidthMoreConvertor : IValueConverter
  9. {
  10. #region IValueConverter Members
  11. public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
  12. {
  13. decimal ret = 0;
  14. Decimal.TryParse(value + "", out ret);
  15. ret += 30;
  16. return ret;
  17. }
  18. public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
  19. {
  20. throw new NotImplementedException();
  21. }
  22. #endregion
  23. }
  24. }