开发者

Icon in WPF Browser application

开发者 https://www.devze.com 2023-03-31 04:58 出处:网络
I have a WPF Browser Application consisting mostly of wpf pages which I\'m developing in Visual Studio 2010.

I have a WPF Browser Application consisting mostly of wpf pages which I'm developing in Visual Studio 2010. I'm publishing the app to the intranet, with ClickOnce at full trust.

Is there any way to have an icon for the pages in this type of application? (which would show instead of the internet explorer icon in each of the tabs of Internet Explorer), I开发者_开发技巧'm executing it through PresentationHost.exe.

What I'm trying to do, is to have a desktop shortcut with a custom icon for each part of the application (two different projects in the same solution).

If there isn't a way to do it with XAML, is there any way to run any commands or a batch file at the moment of accepting the ClickOnce prompt?, to place the shortcuts in the desktop with their respective icons at the moment of installing the application.

Thanks in advance, Jesús.

P.S: I know my redaction skills suck, so if any more details are needed, let me know.


If you open your project file and change the HostInBrowser setting to false, and this will enable the ability to provide an Icon and Manifest in the project's properties.

<HostInBrowser>False</HostInBrowser>

I am not sure how that will affect your app though. Maybe this setting is supposed to be "True" to work how you need it to work.


Did you set the icon for each project, in VS right click on the project - properties - Icon and manifest - click the icon button ...

0

精彩评论

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

关注公众号