So how to Focus an TextBox on Button click using the MVVM Pattern?
i created an simple Testproject Based on this Answer which works on the first click, but after tha
You should make a command for lostFocus event, and when focus is lost, set isFocused property to false, then it will be working. Add Interactivity and Interactions librarys into your project, than you will be able to write something like :
and in your viewModel write:
public void OnLostFocus()
{IsFocused = false;}
and move RaisePropertyChanged to the setter of your property