Posted 16 Jan 2012
Link to this post
Thank you for your question.
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
LiveTileHelper.CreateOrUpdateTile(extendedData, new Uri("/MainPage.xaml", UriKind.RelativeOrAbsolute));
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.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>