public static void SetTile(RecipeDataItem item, string NavSource) { StandardTileData tileData = new StandardTileData { Title = "Contoso Cookbook", BackTitle = item.Group.Title, BackContent = item.Title, BackBackgroundImage = new Uri(item.Group.GetImageUri(), UriKind.Relative), BackgroundImage = new Uri(item.GetImageUri(), UriKind.Relative) }; ShellTile.Create(new Uri(NavSource, UriKind.Relative), tileData); }
public static void SetTile(RecipeDataItem item, string NavSource) { FlipTileData tileData = new FlipTileData() { //Front square data Title = item.Title, BackgroundImage = new Uri(item.GetImageUri(), UriKind.Relative), SmallBackgroundImage = new Uri(item.GetImageUri(), UriKind.Relative), //Back square data BackTitle = item.Title, BackContent = makeString(item.Ingredients), BackBackgroundImage = new Uri(item.Group.GetImageUri(), UriKind.Relative), //Wide tile data WideBackgroundImage = new Uri(item.GetImageUri(), UriKind.Relative), WideBackBackgroundImage = new Uri(item.Group.GetImageUri(), UriKind.Relative), WideBackContent = item.Directions }; ShellTile.Create(new Uri(NavSource, UriKind.Relative), tileData, true); }
public static async System.Threading.Tasks.Task SetTile(RecipeDataItem item, string NavSource) { WindowsPhoneUWP.UpgradeHelpers.StandardTileData tileData = new StandardTileData { Title = "Contoso Cookbook", BackTitle = item.Group.Title, BackContent = item.Title, BackBackgroundImage = new Uri(new Uri("ms-appx://"), item.Group.GetImageUri()), BackgroundImage = new Uri(new Uri("ms-appx://"), item.GetImageUri()) }; await WindowsPhoneUWP.UpgradeHelpers.TilesHelper.CreateHelper(new Uri(new Uri("ms-appx://"), NavSource), tileData); }