问题
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.
来源:https://stackoverflow.com/questions/14986288/wpf-taskbar-restore-minimize-doesnt-always-work