从TaskBar还原Windows应用程序 [英] Restoring windows application from taskBar
本文介绍了从TaskBar还原Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在那里
我开发了我的C#-WPF应用程序.我禁用了默认的Windows标题栏,并暗含了我自己的标题栏.我设法编写了一个自定义代码,以最大程度地减少应用程序.当我将应用程序最小化到Windows任务栏时,单击任务栏上的应用程序按钮时,我的应用程序无法按我的预期进行还原.请帮我提供一个我可以用来实现此目的的代码
谢谢
Martin
hi there
i developed my c#-wpf application. i disabled the default windows title bar and implimented my own. I managed to write a custom code for maximising and minimizing my appplication. When i minimize my application to the Windows task Bar, on clicking on the application button in the task bar,my application does not restore as i expected. Please help me with a code i can use to achieve this
Thanks
Martin
推荐答案
首先,如果您使用hide方法,请尝试在表单调整大小事件上显示.
First if you use hide method try show on form resize event.Like this :
if (this.WindowState != FormWindowState.Minimized)
this.Show();
或者您可以使用:
Or you can use :
if (this.WindowState == FormWindowState.Minimized)
this.WindowState=FormWindowState.Normal;
这篇关于从TaskBar还原Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文