wpftoolkit
wpftoolkit copied to clipboard
More responsive auto-hide window
On my PC with VS debugging, looks like it will take around 0~200ms to execute auto hide; expect to be a lot sooner if it is release build with no debugger attach.
~~Waiting 1.5 seconds for auto-hide kicks in will make me close the window instead.~~
Hi,
following your comment, the file AutoHideWindow has been reviewed. The fix will slightly differ from your solution. Here's how it will react in v4.3: There will be 2 timers. -1st timer: with an interval of 50ms, will check if need to close the AutoHideWindow. If no, will check back in 50ms. If yes, it will start a 2nd timer. -2nd timer: with a customizable interval, will check if need to close the AutoHideWindow. If no, will close the 2nd timer and reactivate the 1st timer. If yes, it will close the AutoHideWindow. Since the 1st timer has a small interval, you won't really notice it. The 2nd timer will let you customize any interval (fast or slow) to close the AutoHideWindow.
Thank you.