Todor

We are still updating our documentation and have not been able to include the LiveTileHelper yet. It will be done soon, but for now, I can explain you the basics.
The LiveTileHelper is intended to create a tile for an application, which can link to any page inside of it, including but not limiting to the front page. It uses the RadExtendedTileData, which inherits the StandartTileData and adds two additional properties: VisualElement and BackVisualElement. Each of them can be set to any UIElement. LiveTileHelper exposes the following methods: CreateTile, CreateOrUpdateTile and CleanupUnpinnedTilesResources. Here is an example of how to create a tile for the MainPage.xaml of your application:

RadExtendedTileData extendedData = new RadExtendedTileData();

extendedData.VisualElement = LayoutRoot;

//this will create a tile looking exactly as your page if it is placed inside a layout panel named LayoutRoot

The difference between the CreateTile and CreateOrUpdateTile methods is that the CreateOrUpdateTile first searches for existing tiles with the same uri and if such tile exist it is deleted before the new one is created. Each time one of these methods is called with two parameters a cleanup is performed to delete the resources for tiles that have been unpinned. If this is not the desired behavior, the methods can be called with their overloads with three parameters, the first two of them being the same and the third - skipCleanup. If the last one is set to true, the cleanup will not be performed until the method CleanupUnpinnedTilesResources is called.

I hope this information will help you. If you need additional assistance here, let us know.

Regards,
Todor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

GJ Kuz

I was playing around with the LiveTileHelper. Is there a way to update the Livetile without exiting the application? Using the WP7 implementation of the LiveTile class, I could update the Secondary Tile without exiting the app using the Update method. I am updating the BackTile when the user performs certain action and it is not ideal to exit the application. Any way around this? Also noticed that the

BackgroundImage won't allow a Relative Uri.

thanks,
Gilles

Todor

With our latest release Q1 2012 Beta, LiveTileHelper already provides a method UpdateTile, which updates the tile without exiting the application. The CreateOrUpdateTile method is also changed so it exits the application only if you are creating a new tile and not when you update an existing one.

Thank you for your time.

Kind regards,
Todor
the Telerik team

Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

Geir-Tore

I ran the Marketplace tests now and suddenly realized that the LiveTileHelper uses API which is not allowed in a background service. I want to update the tile in the background and not only from inside the app. Does this mean LiveTileHelper is a no go?

Valentin.Stoychev

Yes you can't use the LiveTileHelper in Background agent. What is your scenario and why you want to use the LiveTileHelper in your background agent? It won't help you because you don't have any UI there e.g. you can't create a custom image from UIElement in this case. Please let us know - maybe we are missing a major use case here.

All the best,
Valentin.Stoychev
the Telerik team

Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

Geir-Tore

My App downloads data which consists of a list of items once per day. I would like to update the back of the tile with information about a random item so that it will loop through items during the day and show different back tiles.

My problem with this solution is that the layout won't come out exactly as I want (the textblocks won't trigger ellipsis if it overflows the tile size), which is why I started testing the LiveTileHelper.

Valentin.Stoychev

Unfortunalte as you saw it is not possible to access certain framework features in the background agent. This is a platform limitation currently which we can't escape from.

In your case you can pre-generate the images for the background tile in the isolated storage and in the background agent to just pick the already generated image. This is fairly simple solution and will work in your case.

All the best,
Valentin.Stoychev
the Telerik team

Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

Olu

You just confirmed LiveTileHelper cannot be used in background agent but this link in the documentation is showing how to use in background agent - http://www.telerik.com/help/windows-phone/livetilehelper-features-autoupdate.html

It has failed for me in Marketplace test kit, can you confirm if this is not possible to use in background agent? If not, how then to update any tile created with the RadExtendedTileData without the application running?

Thanks.

Valentin.Stoychev

I confirm this is an issue and we will remove the help article. Thank you for pointing this out!

We will do our best to fix this for our next official release (mid-June,2012). If you can't to wait until then - we can give you an internal hotfix earlier - but please send us a support ticket if you want this internal build.

Kind regards,
Valentin.Stoychev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Michael

Is this problem fixed? We just wanted to upload our weather app, where we use the LiveTileHelper to update the weather data with an background agent. But get the error messages, that the Telerik core dll uses features that are not allowed...
Can we get the internal hotfix? We realy need to release this app...

Best regards,
Michael

Todor

Since Q2 2012 our releases include a new assembly: BackgroundAgentTools. It includes the LiveTileHelper, but not the features from Core which cause issues in a BackgroundAgent. The idea is to create the tile with LiveTileHelper in your application using the Core assembly and update this tile in the BackgroundAgent by using the LiveTileHelper from the new assembly. You can read more details in this blog post and you can also download a sample application at the end of the post.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.