Change the real-time anchor property for a text field

I have a TextBox control in my form bound to a property in my view model. The current behavior works in such a way that the view model will only be notified that the text in the TextBox been changed after the control has lost focus.

How can I tell my view model whenever a TextBox changes state in real time? This is tied to a property in my view model, which determines whether the save button is enabled. Therefore, if I type one letter into this TextBox , then my save button should be turned on without losing focus.

+4
source share
1 answer

Change UpdateSourceTrigger to a binding to PropertyChanged .

+9
source

All Articles