I have an Project object it has a Name Property.
The ViewModel for project contains a ICommand called SaveCommand which persists in the database.
I have a textbox in my UI that binds to Name
<TextBox Text="{Binding Name}" LostFocus="??????" />
How do I bind my SaveCommand to the TextBox ecent LostFocus? So when the textbox loses focus the ICommand SaveCommand will run?
Please ignore this question. I solved it by adding a new property to my modelView.