I have a project here and it has set by default that the actions occur by MouseEnter event. I mean, opening a Window, closing, returning, whatever, happens only by the MouseEnter event.
I was requested to make the event fire only after 3 seconds. That means that the user will place the mouse on the control and only after 3 seconds the event must happen for all the controls in the window.
So, I thought about a global timer or something alike, that will return false untill the timer reaches 3… I think that’s the way…
Geez, does anybody knows how can I make such thing?
Thanks!!
You can define a class that will expose a
DelayedExecutemethod that receives an action to execute and creates timers as needed for the delayed execution. It would look something like this:Then you can call it like this:
or