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
Post a Comment