Example #1
0
 public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
 {
     if (!string.IsNullOrEmpty(value.ToString()))
     {
         var money = value.ToString().Replace(".", "");
         if (NumberHelpers.IsNumber(money))
         {
             return(Decimal.Parse(money));
         }
     }
     return(DependencyProperty.UnsetValue);
 }