Hi everyone,
During one of my project i need to add required field validation on the combo box of wpf application. in our process we are generating a form depending on the condition. after the form is generate and all of controls are rendered we need to implement the validation rule for the controls like for required text box i need to check whether this field is empty of not and on the combo box the validation will check for the selected index whether it is greater then 0 index.
i am searching for all above requirement but all of them are giving me the example of binding and applying validation rule in xaml file not in code file
how can i apply required field validation in text box , combo box, list box, and check box ?