TextBox and default Button binding does update too late

前端 未结 3 1124
[愿得一人]
[愿得一人] 2020-11-29 09:01

I\'ve got a simple WPF dialog with these two controls:


3条回答
  •  伪装坚强ぢ
    2020-11-29 09:27

    Add the UpdateSourceTrigger to your TextBox with the value PropertyChanged. The default behavior of the Textbox is to update the source, when it´s lost focus.

    
    

提交回复
热议问题