Binding to decimal value issue

Topics: Issues / bugs
Mar 16, 2013 at 10:38 AM
Hi
I have a decimal field in my application and i want to bind it to a textbox. my problem is when i bind it, i can't add decimal values like 12.24 or 1.29. i can just add 1 or 2 without decimal separator. (when i add . nothing happened)
this behavior also exist when i use catel NumericTextBox with IsDecimalAllowed=true.
what can i do with this problem?
thanks.
Coordinator
Mar 16, 2013 at 10:42 AM
In your culture, what is the numeric decimal separator value (CultureInfo.NumberFormat.NumberDecimalSeparator)?
Mar 16, 2013 at 11:30 AM
Edited Mar 16, 2013 at 11:31 AM
I get it with NumberFormatInfo.CurrentInfo.NumberDecimalSeparator and it returns "."
Mar 16, 2013 at 11:38 AM
I get it with NumberFormatInfo.CurrentInfo.NumberDecimalSeparator and it returns "."
I search in google and find an issue that is like my problem but still i don't know how to solve it
Mar 22, 2013 at 6:12 AM
Is there anyone who has the same problem?
It doesn't require repro. just add a property as decimal (with vmprop) in viewmdel and bind a textbox to it. try to enter a decimal value.
How should i solve this problem?
Please help.