I have a WPF app with a MouseWheel event. The operations in this event is quite heavy. So, I would like to execute this event only when the user has stopped scrolling (i.e.: if he doesn't scroll for a given amount of time).
In JS, this is quite easy, I can just put the setTimout in a var and then do a clearTimeout on that var if another scroll happened before the execution of that setTimeout (this is quite useful for auto-completion for instance).
How can I achieve that in c#?