incel detector
minimize animation when clicked from taskbar not working, but works when it minimizes from code
I have a borderless C# WPF window that supports aerosnap, aeroglass, and the native windows animations.
I am not sure why the minimize animation does not work when it gets minimized from clicking the app icon from the taskbar.
So initially, I thought maybe I should somehow intercept an event before the windows gets actually minimized, and then add the code
this.WindowState = WindowState.Minimized
. If not, maybe intercepting if the taskbar button ( window app icon ) was clicked, and also manually minimizing it through setting window states. If both aren't solutions, there should be some sort of "native check" to see if an application icon was clicked from the taskbar and maybe hook that function, IDK WHAT IM TALKING ABOUT 😦
4 replies
✅ How to intercept and cancel minimize events | C# WPF newbie
I have a borderless C# WPF window that supports aerosnap, aeroglass, and the native windows animations.
I am not sure why the minimize animation does not work when it gets minimized from clicking the app icon from the taskbar.
So initially, I thought maybe I should somehow intercept an event before the windows gets actually minimized, and then add the code
this.WindowState = WindowState.Minimized
. If not, maybe intercepting if the taskbar button ( window app icon ) was clicked, and also manually minimizing it through setting window states. If both aren't solutions, there should be some sort of "native check" to see if an application icon was clicked from the taskbar and maybe hook that function, IDK WHAT IM TALKING ABOUT 😦
3 replies