if I edit the text on a TextBox that is binded with the ViewModel and then I click at the main application menu (to save the data) the ViewModel does not get updated with the new data because somehow the TextBox does not loose the focus and then the data is not updated. Why the TextBox does not lose the focus and how should I fix that?
Asked
Active
Viewed 968 times
4
-
4Duplicate of http://stackoverflow.com/questions/57493/wpf-databind-before-saving – Till Jun 22 '11 at 09:43
-
would you provide some code ? anything strange in the debug output ? – Musaab Jun 22 '11 at 19:06
-
Its a duplicated, I agree. The question was asked in a different way I didn't realize that it was already done. – Ignacio Soler Garcia Jun 23 '11 at 09:24
1 Answers
1
If the problem is databinding updation and not the focus use UpdateSourceTrigger="PropertyChanged" in the textbox binding.

anivas
- 6,437
- 6
- 37
- 45