简体   繁体   中英

Windows 8 Live Tile - Remove text and small icon?

We are using TileWideImage and TileSquareImage and appropriate XML (as described here ) to setup our custom tiles in our Windows 8 game as you finish different levels in the game.

The way our tiles are designed, we don't want any text or icons to show up at all (other than the single image we have created for each version of the tile).

For some reason, TileWideImage puts our app's small icon (I think 30x30 pixels) in the bottom left. We also notice our default icon has text on it when you install the app. Neither of these are desired.

Is there a way to get the behavior we want?

You can turn off the text on the default tile via the application manifest:

在此处输入图片说明

but if you send a tile update that setting can be overridden by in the XML Schema via the branding attribute of the visual or binding tag.

In this case you'll want to send your tile updates similar to:

<tile>
    <visual branding="none">
        <binding template="TileWideText03">
            <text id="1">Hello World! My very own tile notification</text>
        </binding>
        <binding template="TileSquareText04">
            <text id="1">Hello World! My very own tile notification</text>
        </binding>
    </visual>
</tile>

By the way, the App Tiles and Badges Sample is a great resource to do quick tests on tiles like this, confirm behavior, etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM