对于WPF应用程序设置图标(VS 08) [英] Setting Icon for wpf application (VS 08)

查看:302
本文介绍了对于WPF应用程序设置图标(VS 08)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在更大的进展我会提到我在下面试图解决方案:

Before going much further i'll mention I have tried solutions in following:

http://stackoverflow.com/questions/320677/how-do-i-set-the-icon -for-我的应用程序,在视觉工作室2008

http://stackoverflow.com/questions/198848/set-application-icon-from-resources-in-vs-05

我想设置为我的应用程序的图标。

I am trying to set an icon for my application.

据我所知,我需要的可能3图像?

AFAIK, I need potentially 3 images?


  • 1的图像是在资源管理器上的.exe文件时,点击的实际图像(缩略图exe文件)

  • 1图像(微小)的左上角(16×16?不能完全确定)

  • 1在开始菜单码头形象,应用程序(也许32×32的左边?又不确定)

因此多数民众赞成罚款。

So thats fine.

现在我选择了一个图标。我如何使用它在上述情形之一?

Now I have selected an Icon. How do I use it in one of above situations?

我曾尝试在资源添加它,好像没有什么改变。下面,首先做方案,

I have tried adding it in resources, nothing seems to happen. Following that first SO solution,

先去资源视图(从菜单:查看 - >其他窗口 - >资源视图),然后在资源。查看导航通过资源,如果有的话。如果已经有图标类型的资源,由Visual Studio添加,然后打开并编辑它。否则,单击鼠标右键,然后选择添加资源,然后添加一个新的图标。

资源视图是空的,我不能右键点击此视图。

The resource view is empty, and I cannot right click in this view.

如果我右键点击该解决方案>属性>资源>我可以添加图标图像,但它并没有在任何上面列出的位置显示。 (或任何地方,我可以看到)

If I right click on the solution > properties > resources > I can add the icon image, but it doesn't show in either of the locations listed above. (or anywhere that I can see)

1)如何设置一个WPF应用程序的应用程序图标?

推荐答案

假设你使用VS Express和C#。
的图标在项目属性页面中设置。要打开右键单击在Solution Explorer中的项目名称。在打开的页面中,有一个应用程序选项卡,在该选项卡中可以设置图标。

Assuming you use VS Express and C#. The icon is set in the project properties page. To open it right click on the project name in the solution explorer. in the page that opens, there is an Application tab, in this tab you can set the icon.

这篇关于对于WPF应用程序设置图标(VS 08)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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