WPF tutorial

WPF validation

There are too many ways to validate the WPF controlls. I explain here some of them with example.
We need a validation to prevent user from entering a wrong details.
Here we used IDataErrorInfo for validation.Validation made easy with IDataErrorInfo. here I explain you how we used IDataErrorInfo in WPF for validating the controlls. If we are using binding property to bind the contrlss with the properties then IDataErrorInfo is a very easy to use.I go through with most of the post but they not provide the combobox validation but here I explain the combobox validation also
First we need to create a class with some properties to test and list for binding the comboboxes

We create a class "Student" which inherit with IDataErrorInfo
.xaml Code
.xaml.cs Code
WPF Validation Example
WPF IValue Converter >>
If you have any doubt please contact me on 'admin@wpftutorial.co'.