dsafa/CSDeskBand

How to know when the DeskBand is shown or hidden in my code?

Opened this issue · 3 comments

For example, I'm using some timers, connections, etc. to periodically gather information to show on the deskband. But this process is necessary only if the deskband is shown. It the user hides the deskband I don't need to run these information gathering. If the user enable the deskband again then I need to start that information gathering again.
So is there any events that I can use to determine if the status of the deskband has changed?

WinForms

if Winform,
CSDeskBandWin --> override DeskbandOnClosed

show deskband --> call Constructor
close deskband --> call DeskbandOnClosed

But I think WPF should be the same

But I think WPF should be the same