Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How are live tiles made in Windows 8?

I've searched the samples, the developer site, the getting started and the enhancing bla bla bla pages.

Even using some search queries on Google, I can't seem any information on live tiles in Windows 8.

How do I create a live tile in Windows 8? What languages can be used for that? C#? XAML?

like image 899
Tamara Wijsman Avatar asked Sep 16 '11 09:09

Tamara Wijsman


People also ask

Does Windows 8 have live tiles?

Live Tiles are interactive apps on your Windows 8 Start Screen that provide you with dynamic information and quick updates about the app without the need to launch the application. These tiles are connected to people, applications, photos, folders, or websites.

What is meant by a live tile in Windows?

Live Tiles are the sometimes-rotating squares, representing links for starting programs, in Windows 10. Live Tiles also show frequently updated information, such as in weather apps. Instead, with Build 18947, users were presented with a cluster of inert icons representing applications.

How do live tiles work?

How do they work - Their behaviour? Live tiles include a number in the bottom right hand corner. This is to show how many notifications you have within the app. Live Tiles flick between the App logo and the Live Notification.


2 Answers

Finally figured it out, these live tiles are using tile notifications as noted by others.

Here is the minimal code necessary for updating an existing default tile with a template:

  1. You have to load in a template and adjust it, or produce your own XML code. See the tile schema...

    var tileXml = Notifications.TileUpdateManager.getTemplateContent(template);  
  2. You need to create a notification, which apparently is an update to a tile.

    var notification = new Notifications.TileNotification(tileXml);  
  3. You need to create an updater, which will provide you with methods to notify through your tile.

    var upd = Notifications.TileUpdateManager.createTileUpdaterForApplication(); 
  4. If you have all this, you can send an update to the client.

    upd.update(notification);  
like image 136
Tamara Wijsman Avatar answered Oct 10 '22 16:10

Tamara Wijsman


http://msdn.microsoft.com/en-us/library/windows/apps/br211386

You can use either C# or VB + XAML or HTML/JS or C++.

That was the big announcement at the BUILD conference and the whole point of WinRT (God I hope they actually are serious about pushing WinRT for more than a year).

Otherwise it would be back to the Silverlight/.Net uprising that we saw after the first preview. . .

edit

You'll first need to learn the terminology of the MetroUI. You can also find more info under Windows Phone 7.

The Live Tiles can send tile notifications. That's how the socialite tile does the facebook feed. The OS will cycle through tile notifications that you've declared. This is all in the basic Tile sample and the advanced Tile sample.

Here is a link to all the samples from the BUILD event.

Start here for a step by step walkthrough of the platform. I would start there if the reference documentation is confusing.

like image 36
surfasb Avatar answered Oct 10 '22 16:10

surfasb