internal override ShellTileData ToShellTileData()
{
#if WP8
return new FlipTileData()
{
Title = Title,
BackBackgroundImage = BackBackgroundImage,
BackContent = BackContent,
BackTitle = BackTitle,
BackgroundImage = BackgroundImage,
Count = Count,
SmallBackgroundImage = SmallBackgroundImage,
WideBackBackgroundImage = WideBackBackgroundImage,
WideBackContent = WideBackContent,
WideBackgroundImage = WideBackgroundImage
};
#else
if (!ShellTileService.LiveTilesSupportedStatic)
{
return base.ToShellTileData();
}
var flipTileDataType = Type.GetType("Microsoft.Phone.Shell.FlipTileData, Microsoft.Phone");
var flipTileData = (StandardTileData)flipTileDataType.GetConstructor(new Type[] { }).Invoke(null);
flipTileData.Title = Title;
flipTileData.BackBackgroundImage = BackBackgroundImage;
flipTileData.BackContent = BackContent;
flipTileData.BackgroundImage = BackgroundImage;
flipTileData.BackTitle = BackTitle;
flipTileData.Count = Count;
flipTileData.SetPropertyValue("SmallBackgroundImage", SmallBackgroundImage);
flipTileData.SetPropertyValue("WideBackgroundImage", WideBackgroundImage);
flipTileData.SetPropertyValue("WideBackBackgroundImage", WideBackBackgroundImage);
flipTileData.SetPropertyValue("WideBackContent", WideBackContent);
return flipTileData;
#endif
}