I’ve to make a textbox(WPF) for entering time with validation.
I want to enter a regular expression validation for time (6:12 am).
I’ve to make a textbox(WPF) for entering time with validation. I want to enter
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
check this: http://msdn.microsoft.com/en-us/library/system.windows.controls.validation.errors.aspx for handling validation errors in controls
Else you can implement IDataErrorInfo in your viewmodel so that the Validation is embedded to your data itself.