minimize WPF application into Taskbar -


i using this wpf notifyicon , works fine:

<tb:taskbaricon     name="taskbaricon"                 iconsource="icon.ico"     tooltiptext="hello world"> </tb:taskbaricon> 

but when minimize application can see application open , not icon in task bar. how hide application when minimize ?

subscribe statechangingevent

add code in window's constructor

statechanged += (s, e) => if (windowstate == windowstate.minimized) hide(); 

Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -