发送到托盘上关闭 [英] Send to tray on Close

查看:220
本文介绍了发送到托盘上关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何发送最小化到托盘上点击关闭按钮时窗口? 还怎么显示托盘图标时,应用程序启动?

How can I send the window minimized to tray when on click close button? Also how to show icon in tray when application start?

推荐答案

没有什么自带嵌入式与WPF。从实现方式,你可以找到在网上,有一个简单的,使用的WinForms:

There is nothing that comes embedded with WPF. From implementations that you can find on the net, there is an "easy" one, that uses WinForms:

<一个href="http://msdn.microsoft.com/en-us/library/aa972170.aspx">http://msdn.microsoft.com/en-us/library/aa972170.aspx

不过,我喜欢这一个多(可用于气球提示过)

But I like this one more (can be used for balloon tips too)

<一个href="http://www.$c$cproject.com/KB/WPF/wpf%5Fnotifyicon.aspx">http://www.$c$cproject.com/KB/WPF/wpf_notifyicon.aspx

这篇关于发送到托盘上关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆