【问题标题】:Wide Logo on start Screen in window store app?橱窗商店应用程序的开始屏幕上的宽徽标?
【发布时间】:2014-03-31 17:58:42
【问题描述】:

在我的应用程序中,我想将我的默认徽标设置为宽徽标。当用户 pin 启动我的应用程序宽徽标时,将显示如何执行此操作? 我试图编辑清单文件,但那里的一切都很好

  <?xml version="1.0" encoding="utf-8"?>
    <Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
      <Identity Name="eaccc03b-ad21-4762-9c73-39835d6eb23b" Publisher="CN=Admin" Version="1.0.0.0" />
      <Properties>
        <DisplayName>App5</DisplayName>
        <PublisherDisplayName>Admin</PublisherDisplayName>
        <Logo>Assets\StoreLogo.png</Logo>
      </Properties>
      <Prerequisites>
        <OSMinVersion>6.3.0</OSMinVersion>
        <OSMaxVersionTested>6.3.0</OSMaxVersionTested>
      </Prerequisites>
      <Resources>
        <Resource Language="x-generate" />
      </Resources>
      <Applications>
        <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="App5.App">
          <m2:VisualElements DisplayName="Kids" Square150x150Logo="Assets\Logo.png" Square30x30Logo="Assets\SmallLogo.png" Description="App5" ForegroundText="light" BackgroundColor="#464646">
            <m2:DefaultTile Wide310x150Logo="Assets\WideLogo.png">
              <m2:ShowNameOnTiles>
                <m2:ShowOn Tile="wide310x150Logo" />
              </m2:ShowNameOnTiles>
            </m2:DefaultTile>
            <m2:SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="#ffffff" />
            <m2:InitialRotationPreference>
              <m2:Rotation Preference="landscape" />
            </m2:InitialRotationPreference>
          </m2:VisualElements>
        </Application>
      </Applications>
      <Capabilities>
        <Capability Name="internetClient" />
      </Capabilities>
    </Package>

【问题讨论】:

    标签: xaml windows-store-apps windows-8.1


    【解决方案1】:

    只需添加 DefaultSize 属性:

    <m2:DefaultTile Wide310x150Logo="Assets\WideLogo.png" DefaultSize="wide310x150Logo">
    ...
    </m2:DefaultTile>
    

    这将使宽磁贴成为默认磁贴。如果你想要 150*150 的 logo 作为默认值,只需将 DefaultSize 更改为 DefaultSize="square150x150Logo"

    【讨论】:

      猜你喜欢
      • 2016-07-08
      • 1970-01-01
      • 2013-03-30
      • 1970-01-01
      • 2019-10-16
      • 1970-01-01
      • 2012-12-29
      • 1970-01-01
      • 2021-05-23
      相关资源
      最近更新 更多