Silverlight浏览器外图标显示不一致
在Silverlight 3应用程序中,我发现浏览器外的图标有一些奇怪的行为。所有四种大小都在AppManifest.xml中定义,每个图标的构建操作都设置为“Content”。然而,当应用程序运行时,我只在第一个安装提示(128x128图标)上看到图标,而没有在桌面、快捷菜单或标题栏上看到。如果我从xml中删除128x128图标定义,那么会自动使用下一个大小的图标,这样看起来它们都被正确引用和打包了 以下是应用程序清单xml:Silverlight浏览器外图标显示不一致,silverlight,silverlight-3.0,out-of-browser,Silverlight,Silverlight 3.0,Out Of Browser,在Silverlight 3应用程序中,我发现浏览器外的图标有一些奇怪的行为。所有四种大小都在AppManifest.xml中定义,每个图标的构建操作都设置为“Content”。然而,当应用程序运行时,我只在第一个安装提示(128x128图标)上看到图标,而没有在桌面、快捷菜单或标题栏上看到。如果我从xml中删除128x128图标定义,那么会自动使用下一个大小的图标,这样看起来它们都被正确引用和打包了 以下是应用程序清单xml: <Deployment xmlns="http://sche
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Deployment.ApplicationIdentity>
<ApplicationIdentity ShortName="XXX" Title="XXX">
<ApplicationIdentity.Blurb>XXX</ApplicationIdentity.Blurb>
<ApplicationIdentity.Icons>
<Icon Size="16x16">Icons/16.png</Icon>
<Icon Size="32x32">Icons/32.png</Icon>
<Icon Size="48x48">Icons/48.png</Icon>
<Icon Size="128x128">Icons/128.png</Icon>
</ApplicationIdentity.Icons>
</ApplicationIdentity>
</Deployment.ApplicationIdentity>
</Deployment>
XXX
Icons/16.png
Icons/32.png
图标/48.png
Icons/128.png
有什么想法吗?仅供将来参考,Silverlight 3发行版的浏览器外配置已更改。这些设置现在在OutOfBrowserSettings.xml中配置,如下所示:
<OutOfBrowserSettings ShortName="XXX" EnableGPUAcceleration="False" ShowInstallMenuItem="True">
<OutOfBrowserSettings.Blurb>XXX</OutOfBrowserSettings.Blurb>
<OutOfBrowserSettings.WindowSettings>
<WindowSettings Title="XXX" Height="800" Width="600" />
</OutOfBrowserSettings.WindowSettings>
<OutOfBrowserSettings.Icons>
<Icon Size="16,16">Icons/16.png</Icon>
<Icon Size="32,32">Icons/32.png</Icon>
<Icon Size="48,48">Icons/48.png</Icon>
<Icon Size="128,128">Icons/128.png</Icon>
</OutOfBrowserSettings.Icons>
</OutOfBrowserSettings>
XXX
Icons/16.png
Icons/32.png
图标/48.png
Icons/128.png
这解决了我上面描述的所有问题。有关发布版本更改的更多信息,请参见:好问题。你在官方论坛上发表过这个吗?这可能是一个需要在RTM版本上修复的错误:-(