4

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?

alex
  • 479,566
  • 201
  • 878
  • 984
Ignacio Soler Garcia
  • 21,122
  • 31
  • 128
  • 207

1 Answers1

1

If the problem is databinding updation and not the focus use UpdateSourceTrigger="PropertyChanged" in the textbox binding.

anivas
  • 6,437
  • 6
  • 37
  • 45