I am developing a small application in wpf and a simple validation, what I want is that when the control does not satisfy the validation, the focus of the control is not removed even though the user clicks on another control. I forced that it does not leave the control until you enter the correct values.
This in Windows Forms is achieved through the validating event that uses the CancelEventArgs class and with the instruction e.Cancel = true; because the focus is blocked to advance to the next control.
The problem is that the WPF controls does not have the Validating event to use that class.