Tiles

Tile Types

  • Basis
    • Short Name
    • App Logo
    • Plate
  • Semi-Live State
    • Badge
    • Short Name
    • App Logo
    • Plate
  • Live State
    • Badge
    • App Icon
    • Short Name
    • Content (Images, Text, …)
    • Plate

Update Tiles

  • Scheduled „ScheduledTileNotification“
  • Periodic (Pull from URL (30m/60m/6h/12h/24h)
  • Local (Update from Fore- or Background App
  • Push (Push Service, Update Badge)

Update Badge

var type = BadgeTemplateType.BadgeNumber;
var xml = BadgeUpdateManager.GetTemplateContent(type);
var elements = xml.GetElementsByTagName("badge");
var element = elements[0] as Windows.Data.Xml.Dom.XmlElement;
element.SetAttribute("value", "47);
var updator = BadgeUpdateManager.CreateBadgeUpdaterForApplication();
var notification = new BadgeNotification(xml);
updator.Update(notification);

Create a secondary Tile

var tileId = "DetailsTile";
var pinned = secondaryTile.Exists(tileId);

if(!pinned)
{
  var tile = new Secondary(tileId)
    {
      DisplayName = "Record details",
      Arguments = "123";
    }
  var succecc = await tile.RequestCeateAsync();
}

Hint:  Used for deep link into the App

Adaptive Template

  • TileSmall
  • TileMedium
  • TileWide
  • TileLarge (Desktop Only)
  • (TileTall)
<tile>
 <visual>
   <binding template="TileMedium">
    <group>
     <subgroup>
      <text hint-style="subtitle">John Doe</text>
      <text hint-style="subtitle">Photos</text>
      <text hint-style="subtitle">Tought you might..</text>
     </subgroup>
    </group>
    <group>
     <subgroup>
      ...
     </subgroup>
    </group>
   </binding>
 </visual>
</tile>

Tile With Image

<tile>
 <visual>
   <binding template="TileMedium" branding="name" displayName="name">
    <image source="Assets\image.png" placement="background" />
    <text hint-wrap="true">This is a very very long text!</text>
   </binding>
 </visual>
</tile>