How To Create Custom Validationrule In Wpf Applications.