WPF 浏览器应用程序中的图标
我有一个 WPF 浏览器应用程序,主要由我在 Visual Studio 2010 中开发的 wpf 页面组成。 我正在将应用程序发布到 Intranet,并完全信任 ClickOnce。
有什么方法可以为此类应用程序中的页面添加图标吗? (这将在 Internet Explorer 的每个选项卡中显示而不是显示 Internet Explorer 图标),我通过PresentationHost.exe 执行它。
我想做的是为应用程序的每个部分(同一解决方案中的两个不同项目)提供一个带有自定义图标的桌面快捷方式。
如果没有办法使用 XAML 来执行此操作,是否有任何方法可以在接受 ClickOnce 提示时运行任何命令或批处理文件?安装应用程序。
预先感谢,耶稣。
PS:我知道我的编辑能力很差,所以如果需要更多细节,请告诉我。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果打开项目文件并将 HostInBrowser 设置更改为 false,则可以在项目属性中提供图标和清单。
我不确定这将如何影响您的应用程序。也许这个设置应该是“True”,才能按照您需要的方式工作。
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.
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.
你是否为每个项目设置了图标,在VS中右键单击项目 - 属性 - 图标和清单 - 单击图标按钮...
Did you set the icon for each project, in VS right click on the project - properties - Icon and manifest - click the icon button ...