Windows 8.1 App re-departure-updates for tiles

Source: Internet
Author: User

Original: Windows 8.1 app re-start-tile update

This article together with you to learn about the update of tiles in Windows 8.1, we look at how to use it to make a better app tile.

First, let's compare the tiles in Windows 8 and Windows 8.1 in the form of presentation:

Windows 8 supports two sizes of tiles, square tiles (150 * 150 pixels) and rectangular tiles (310 * 150 pixels). For example, messages and calendars belong to a rectangular tile, and the map and store are square tiles.

Windows 8.1 supports two sizes of tiles, small tiles (70 * 70 pixels) and large tiles (310 * 310 pixels), based on the 8.0 tile type.

This allows Windows 8.1 to support four sizes of tiles, small tiles, medium tiles (original square tiles), wide tiles (original rectangular tiles), and large tiles.

such as in IE and maps are small tiles, reading list belongs to the medium tile, the information belongs to the wide tile, the weather belongs to the big tile. It is important to note that the small tile is not supported by live tiles.

After reading the presentation, let's look at how to set up these four tiles in the app. What we're using here is the program manifest file (package.appxmanifest).

What we see here is the visual interface of the program manifest file, which can be seen directly, and the app allows us to provide four sizes of tiles.

There are two options for applying the default tile size: 310 * 150 wide tile or 150 * 150 tile. (in Windows 8.1, after the app is installed, the tile does not appear on the Start screen, and the default tile size setting takes effect when the user secures the app)

We can specify which tiles show the app name, but the small tile doesn't display the name (and the other small tile doesn't support live tiles, as we said earlier).

Of the four tiles, 70 * 70 small tiles and 150 * 150 tiles are supported by all apps. 310 * 150 Wide tiles and 310 * 310 large tiles are selectable.

But there are two points to note: 1. If the wide tile is not supported, the default size is not selectable as a wide tile. 2. If you want to support large tiles, you must support wide tiles.

We set the tile according to the size requirements for each tile, and then we look at the changes in the program manifest file:

<?XML version= "1.0" encoding= "Utf-8"?>< Packagexmlns= "Http://schemas.microsoft.com/appx/2010/manifest"xmlns:m2= "Http://schemas.microsoft.com/appx/2013/manifest">  ...  <Applications>    <ApplicationId= "APP"executable= "$targetnametoken $.exe"entrypoint= "Win8._1updatecontrols.app">      <m2:visualelementsDisplayName= "Tile Update"Description= "Win8.1updatecontrols"Foregroundtext= "Light"BackgroundColor= "#464646"Square150x150logo= "Assets\logo.png"Square30x30logo= "Assets\square30x30logo.png">        <M2:defaulttileSquare70x70logo= "Assets\square70x70logo.png"defaultsize= "wide310x150logo"Square310x310logo= "Assets\square310x310logo.png"Wide310x150logo= "Assets\wide310x150logo.png">          <M2:shownameontiles>            <M2:showonTile= "Square150x150logo" />            <M2:showonTile= "Wide310x150logo" />            <M2:showonTile= "Square310x310logo" />          </M2:shownameontiles>        </M2:defaulttile>        <M2:splashscreenImage= "Assets\splashscreen.png" />      </m2:visualelements>    </Application>  </Applications>  <Capabilities>    <CapabilityName= "Internetclient" />  </Capabilities></ Package>

As shown in the code above:

1. Small, medium, wide, large tiles corresponding names are: Square70x70logo, Square150x150logo, Wide310x150logo and Square310x310logo.

2. The default tile size is: defaultsize= "Wide310x150logo" means the default is wide tile, if the default is a medium tile, then the code will change to: Defaultsize= "Square150x150logo".

3. The tile type of the display name is defined in the <m2:ShowNameOnTiles>...</m2:ShowNameOnTiles> node.

So we're done with the updates to the tiles in Windows 8.1, and the next few we're going to introduce the other updates that Windows 8.1 brings, thank you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.