WPF任务栏恢复/最小化并不总是有效

时间:2021-12-10 14:13:19

So I have a large WPF application, and there is an icon on the taskbar when the application is running. I would expect that if I click the taskbar icon, the application will restore itself, or minimize if it is already showing, as is standard windows functionality. However, sometimes I have to click several times for this to work. I've done quite a bit of research/programming, but this is one fairly simple item I can not figure out. Any help is appreciated, please let me know if I need to provide more info. I have tested using a jumplist, but my users do not want to right click the icon and then click "restore". They just want to left-click the taskbar icon. .Net 4.0, WPF 4. Thanks in advance everyone.

我有一个大型WPF应用程序,当应用程序运行时,任务栏上有一个图标。我希望,如果我单击任务栏图标,应用程序将自动恢复,或者在已经显示时最小化,这是标准的windows功能。然而,有时我必须点击几次才能让它工作。我做了不少研究/编程,但这是一个相当简单的项目,我搞不懂。如有任何帮助,请告诉我,如果我需要提供更多的信息。我已经使用jumplist进行了测试,但我的用户不希望右键单击图标,然后单击“恢复”。他们只想左键点击任务栏图标。net 4.0, WPF 4。提前谢谢大家。

1 个解决方案

#1


0  

Check if there are any background processes are running.

检查是否有任何后台进程正在运行。

#1


0  

Check if there are any background processes are running.

检查是否有任何后台进程正在运行。