dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
7.06k stars 1.17k forks source link

Window not Restore from taskbar #4124

Open Gilfoylex opened 3 years ago

Gilfoylex commented 3 years ago
ClosetBugSlayer commented 3 years ago

I can duplicate this problem at will in .NET 5, and it's been a bug since NET Framework 4.*. It happens when I try to persist a window as minimized then set it to minimized as soon as possible on launch. I can never restore it again unless I explicitly select the Restore item on the window's system menu; clicking the Taskbar button produces nothing,

Gilfoylex commented 3 years ago

I can duplicate this problem at will in .NET 5, and it's been a bug since NET Framework 4.*. It happens when I try to persist a window as minimized then set it to minimized as soon as possible on launch. I can never restore it again unless I explicitly select the Restore item on the window's system menu; clicking the Taskbar button produces nothing,

It may not be a wpf problem, I tried using the win32 api to reproduce the problem, the main window minimises its sub-windows only when the main window is minimised, the sub-windows of the sub-windows cannot be minimised.