开发者

Specify an icon for app with Visual Studio

I am have some trouble specifying a custom icon in my WPF applicaion. I went to Properties/Application and down in resourc开发者_如何学运维e I pointed towards where the icon is stored (Resources/MyIcon.ico). However when I run the app I get the default icon.

Has anyone else seen similar problems?


The icon shown in the taskbar and on a form is the icon associated with the form, not the application. (After all, two forms can have two different icons)

You need to change the Icon property of your main Window in XAML.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜