Customcontrol validating user input in

The validation is only successful if the value is not null and empty.

Let's check out another validation rule which forces a developer too type a numeric input into the Text Box.

The binding object has a validation tools collection which is used to hold the custom validation rules.

Next step is to choose the way Super Validator performs validation.

The Label will be used to display the error message to the user.

Now let's check out the code behind for User Control.

Let's check out the details of how to implement the validation rules.

Validation rules are very easy to implement since you only have to inherit from the validation Rule class as shown below: The code above validates the user input against the null and empty values.