我们可以在运行时在WPF中更改“应用程序窗口"任务栏图标吗? [英] Can we change the Application Window TaskBar icon at run time in WPF?

查看:69
本文介绍了我们可以在运行时在WPF中更改“应用程序窗口"任务栏图标吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序功能类似于Outlook.当我最小化应用程序时,它将在系统托盘中最小化,而当最大化时,还将显示窗口任务栏图标.

My application functions like outlook. When I minimize the application it will minimized at system tray and when maximized the window taskbar icon is also shown.

我可以在运行时更改系统任务栏图标,但是我还可以在运行时更改窗口任务栏"图标(在构建时嵌入到应用程序中的应用程序"图标)吗?

I can change the system tray icon at run time ,but can I also change the Window Taskbar icon ( Application icon embedded into the application at build time) at runtime ?

推荐答案

this.Icon = new BitmapImage(new Uri("..."));

此处 Window 对象.

这篇关于我们可以在运行时在WPF中更改“应用程序窗口"任务栏图标吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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