Silverlight from browser icons displaying inconsistency

I get strange behavior using browser icons in a Silverlight 3 application. All four sizes are defined in AppManifest.xml, and each icon has a build action set to "Content". However, I only see the icon displaying in the very first installation request (128x128 icon), and not on the desktop, in the context menu, or in the title bar when the application starts. If I remove the 128x128 icon definition from xml, then the next size down will be automatically used, so it seems that they are all referenced and correctly packed.

Here is the xml application manifest:

<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>

Any ideas?

+3
1

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>

, . : http://blogs.msdn.com/katriend/archive/2009/07/10/silverlight-3-out-of-browser-applications.aspx

0

Source: https://habr.com/ru/post/1711948/


All Articles