WPF Textbox validation?
WPF
2
Posts
2
Posters
0
Views
1
Watching
-
Hi Guys, Im using Xaml textbox,now i want to validate the textbox,like accepting only numbers or accepting only alphabets,i have referred some some site theres no clear solution.if anyone knows help me.. Regrds Kanna..
-
Hi Guys, Im using Xaml textbox,now i want to validate the textbox,like accepting only numbers or accepting only alphabets,i have referred some some site theres no clear solution.if anyone knows help me.. Regrds Kanna..
Do you want to validate it, or do you want to prevent the user from being able to enter invalid information? If it's prevention, you can use the PreviewKeyDown event to prevent unwanted keypresses (by setting the Handled to true).
Deja View - the feeling that you've seen this post before.