Windows 10 Live Tile品牌标识非常小

时间:2015-12-28 18:20:51

标签: uwp live-tile branding

我有以下问题。我在我的应用程序中创建了Secondary Tiles,并用名称和徽标标记它们。与我固定的其他应用程序相比,徽标似乎非常小。我创建了徽章徽标和所有没有边框的targetize徽标。谁能告诉我哪个图片正好用于品牌标识?

瓷砖的创建方式如下:

string tileId = "MySecondaryAppTile"
string displayName = "MyApp";
string tileActivationArguments = "MyApp activated from Secondary tile";

Uri square71x71Logo = new Uri("ms-appx:///Assets/Square71x71Logo.png");
Uri square150x150Logo = new Uri("ms-appx:///Assets/Square150x150Logo.png");
Uri wide310x150Logo = new Uri("ms-appx:///Assets/Wide310x150Logo.png");
Uri square310x310Logo = new Uri("ms-

TileSize newTileDesiredSize = TileSize.Wide310x150;

SecondaryTile secondaryTile = new SecondaryTile(tileId,
                                                displayName,
                                                tileActivationArguments,
                                                square150x150Logo,
                                                newTileDesiredSize);

 if (!(Windows.Foundation.Metadata.ApiInformation.IsTypePresent(("Windows.Phone.UI.Input.HardwareButtons"))))
 {
      secondaryTile.VisualElements.Wide310x150Logo = wide310x150Logo;
      secondaryTile.VisualElements.ShowNameOnWide310x150Logo = true;
      secondaryTile.VisualElements.Square310x310Logo = square310x310Logo;
      secondaryTile.VisualElements.ShowNameOnSquare310x310Logo = true;
 }

 secondaryTile.VisualElements.ShowNameOnSquare150x150Logo = true;

 secondaryTile.RoamingEnabled = false;

 Windows.Foundation.Rect rect = FloorPage.GetElementRect((FrameworkElement)sender);
Windows.UI.Popups.Placement placement = Windows.UI.Popups.Placement.Below;
bool isPinned = await secondaryTile.RequestCreateForSelectionAsync(rect, placement);

Tile通知如下:

TileContent tileContent = new TileContent()
{
   Visual = new TileVisual()
   {
        **Branding = TileBranding.NameAndLogo**,

        TileMedium = new TileBinding()
        {
             Content = CreateTileBindingContent()
        },

        TileWide = new TileBinding()
        {
             Content = CreateTileBindingContent()
        },

        TileLarge = new TileBinding()
        {
            Content = CreateTileBindingContent()
        }
    }
};
TileNotification notification = new TileNotification(tileContent.GetXml());
TileUpdateManager.CreateTileUpdaterForSecondaryTile(tileId).Update(notification);

我要指的是以下标志:

Tile branding name and logo

1 个答案:

答案 0 :(得分:1)

它会使用Square44x44Logo作为品牌标识。因此,请确保您的断言文件看起来正确(例如,徽标的透明部分应尽可能少)。