Ignoring text/value changes due to databinding

后端 未结 3 1546
青春惊慌失措
青春惊慌失措 2021-01-18 07:38

How does one ignore changes to a control when databinding occurs? I tried hooking various events like gotfocus,textchanged,and leavefocus, but if the control already has fo

3条回答
  •  走了就别回头了
    2021-01-18 08:24

    You should update your Binding Code to set the following

    {Binding Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}
    

    EDIT: Sorry, I have overseen the fact that you already know this...In that case, I can't help :(

提交回复
热议问题