WPF如何在最小化应用程序时在系统任务栏上显示图标 [英] wpf how to show icon on system taskbar when app minimized

查看:863
本文介绍了WPF如何在最小化应用程序时在系统任务栏上显示图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一个简单的问题(我认为这很简单,但是我没有立即找到它).
当WPF应用程序最小化到任务栏时,我想在系统任务栏上显示自己的应用程序图标,该怎么办?

哪个属性,我应该如何处理?

解决方案

在WPF窗口的Icon属性中,您可以设置图标.运行您的应用程序时,这将显示在任务栏上.

您还可以在应用程序级别设置图标,这意味着安装后应用程序的exe或快捷方式的图标.

转到资源"组框下应用程序选项卡"中的应用程序属性页",您可以设置所需的图标.
http://possemeeg.wordpress.com/2007/09/06 /minimize-to-tray-icon-in-wpf/ [ 解决方案

In your WPF window''s Icon property you can set icon. This will be shown at taskbar while running you application.

You can also set icon at application level means after installation the icon of your application''s exe or shortcut.

Go to Application Property Page in Application Tab under Resources group box you can set your desired icon.


I think what you are looking for is this:

http://possemeeg.wordpress.com/2007/09/06/minimize-to-tray-icon-in-wpf/[^]

Just shout if you dont understand anything!


这篇关于WPF如何在最小化应用程序时在系统任务栏上显示图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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