I have a WPF-Application with MVVM and a few TextBoxes. In my ViewModel I evaluate the input of the textboxes (database query) and decide which TextBox to focus next. If the input is incorrect I want to output a MessageBox and keep the focus on the current TextBox.
My evaluation is triggered by a "LostFocus" event but I have no clue how to set the focus on a specific TextBox in ViewModel.