WPF Databind Before Saving

前端 未结 12 2256
情深已故
情深已故 2020-11-29 03:46

In my WPF application, I have a number of databound TextBoxes. The UpdateSourceTrigger for these bindings is LostFocus. The object is saved using t

12条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 04:01

    Have you tried setting the UpdateSourceTrigger to PropertyChanged? Alternatively, you could call the UpdateSOurce() method, but that seems like a bit overkill and defeats the purpose of TwoWay databinding.

提交回复
热议问题