Wpf textblock binding not updating
Now, running the application, the Text Block shows “Kevin”.
One of the best things about Bindings is they keep the UI in sync with the data in the view model. If we run the application the Text Box will still show “Kevin”, not the updated value of “Mark”.
Depending on your application, this is where the real work gets done.
(BTW if you remember this song, then you are Awesome AND Old. You can use this technique to bind two or more values to the same Text Block.
Unlike other design patterns, the view model should not know about its view.
This separation of concerns, is one the key tenets of MVVM.
Although the property’s value has been changed, there has been no notification to the Binding to update its value.
We can fix this by implementing the INotify Property Changed (INPC) interface.