简体   繁体   中英

Icon in WPF Browser application

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.

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

您是否为每个项目设置了图标,在VS中右键单击项目-属性-图标和清单-单击图标按钮...

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM