I have a page with some text boxes for data input. The binding of the text box is set to TwoWay
. The data in my view model only gets updated if the text box loses focus. If I click a button, such as save, and the text box still has the focus, the changes in the text box aren't changed in my view model on the save event.
Is there a way to have the binding save the value of the text box before it loses focus? Or do I need to do something in the save event?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…