i'm making a program about finances management in WPF and I need textboxes like the ones the title describes.
Before you call this duplicate, I have searched in multiple sites and all the solutions proposed work fine with only numbers, but they don't seem to recognize my dot key or the comma key (I use Latin American qwerty keyboard), I dont know if the solutions I tried are region specific (because of the keyboards) or its something on my code.
So far I have tried:
This, with multiple Regex I have found around the internet that should have the same result
The same as before but manually comparing the e.KeyChar to Convert.ToChar(".")
Using the KeyDown event and multiple if (e.Key == Key.DX) (this worked for the dot, but not for the numbers and I tried the D0-D9 keys and the OEM ones)
None of these seem to work for me, and because I need to do math with the numbers and because of their purpose I need them to have the decimal dot (or comma)
Any help or ideas is appreciated.