using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Data; namespace Aitex.Core.UI.Converters { public class WidthMoreConvertor : IValueConverter { #region IValueConverter Members public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { decimal ret = 0; Decimal.TryParse(value + "", out ret); ret += 30; return ret; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } #endregion } }