Ignoring text/value changes due to databinding

后端 未结 3 1573
青春惊慌失措
青春惊慌失措 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:15

    You can use the UIElement.TextInput event to detect user input.

    Note that the event is probably already handled by the input control itself so you might have to use the UIElement.PreviewTextInput event.

提交回复
热议问题