I have a WPF sub window with some input controls that the user has to correctly fill before pressing Ok button.
I have already implemented the interface IDataErrorInfo to validate all properties bound to UI Controls.
Now I would like that the IsEnabled property of Ok button is True only if ALL controls are valid, otherwise it has to be set to False.
It should be easy but I cannot find the correct solution. Do you have any suggestion?
Thanks in advance!