Over a million developers have joined DZone.

Windows Phone 8 Upcoming Live Tile Feature

· Mobile Zone

Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud, brought to you in partnership with IBM.

With all the buzz this week about the Windows Phone 8 SDK leak, I couldn’t resist installing it.

The title of the SDK is Windows Phone 8 Developer Preview. There are so many cool new features that initially, I didn’t know where to start. I decided to start with one of the new features of the live tiles, since this is the Windows Phone’s biggest strength.

I don’t know the exact feature name, but it’s about cycling images in a live tile. Here is a little video that will help to describe the feature.

Cycling images in a Live Tile

Have you spotted the difference between the Windows Phone 7 badge count and the new OS? It is now in a square instead of a circle!

What I love about Microsoft is that they make it easy for developers to use their APIs.

Follow these two steps to accomplish what you see in the video:
1- Add up to 9 images to the project and set the Build Action to Content. The images need to be local only.
2- Append the following code

ShellTile appTile = ShellTile.ActiveTiles.First();

if (appTile != null)
    Uri uri1 = new Uri("/Assets/UltimatePokerManager.png", UriKind.Relative);
    Uri uri2 = new Uri("/Assets/YourShape.png", UriKind.Relative);

    CycleTileData cycleTileData = new CycleTileData
                                            Count = 3,
                                            CycleImages = new[] {uri1, uri2}


The UtimatePokerManger.png and YourShape.png have the size 173×173. When you watched the video, the images were expanded.

Please note that the SDK is in preview and there is no guarantee that the APIs will be the same in the released version, but I bet this feature will stay as it is.

This was my first Windows Phone 8 blog post and is surely not the last!

The Mobile Zone is brought to you in partnership with Strongloop and IBM.  Visually compose APIs with easy-to-use tooling. Learn how IBM API Connect provides near-universal access to data and services both on-premises and in the cloud.


Published at DZone with permission of Sébastien Lachance, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}