-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ignore invalid characters #24
Comments
Do you mean ignoring as in detecting that user types in a letter and not update the text in the numeric box with it? If so, no, there is currently no support for this. Not sure it is a nice user experience to type in things that gets removed. Same with swapping out decimal separator ',' -> '.', no support for it. |
Too bad, sometimes it's a good way to protect against typing errors users are not getting along with your computer. Some users have problems with the use of a decimal point, too, would not be bad to have such a setting. |
Are you interested in writing a PR for this? If so what would the API look like? |
Side note: Have you seen the ValidationTrigger property? Setting it to PropertyChanged will give the user immediate feedback if validation fails. |
The problem with this behavior is that despite the fact that the control signals in the model opishibke left recently successfully entered value with whom he continues to run the program. If you add the property "allow incorrect input", which is a value of true ignorirovalaby entries, otherwise the behavior is left as it is, it is now. I am interested in using this library, I have a similar, but your gorazdno soschnee and has almost everything you need, and even more) |
I think its a good idea to prevent invalid characters. |
What do we want the API to look like? We can spec things here in case someone writes a PR. |
since it is a numeric input, it should be the default. |
I am also interested in using this library and I would like a setting that only accepts numeric input. I've done something similar before and did not use RegEx pattern. Instead I checked each new key press if the resulting string would be parsable (TryParse) using the actual type (int, double, etc). The display value in the text box was formatted according to the current culture. |
Hello.
Is it possible to ignore when entering invalid characters?
The text was updated successfully, but these errors were encountered: