Raising a PropertyChanged event during a Pause in TextBox entry?

后端 未结 5 1514
陌清茗
陌清茗 2020-12-09 23:19

I was wondering if it\'s possible to raise a PropertyChanged event when the user pauses while typing text into a TextBox? Or more specifically, I w

5条回答
  •  北海茫月
    2020-12-10 00:04

    Why not use UpdateSouceTrigger=PropertyChanged, but instead of directly firing off your background process have it reset a timer that will fire off that process after, say, 3 seconds. That way if they type something else in before 3 seconds is up, the timer gets reset and the background process will occur +3 more seconds from now.

提交回复
热议问题