Skip to content

Instantly share code, notes, and snippets.

@mbmccormick
Created December 19, 2013 18:13
Show Gist options
  • Save mbmccormick/8043694 to your computer and use it in GitHub Desktop.
Save mbmccormick/8043694 to your computer and use it in GitHub Desktop.
FlipTileData tile = new FlipTileData();
tile.Title = data.Name;
tile.Count = tasksOverdue.Count + tasksDueToday.Count;
FlipTileTemplate image = new FlipTileTemplate();
string imagePath = "/Shared/ShellContent/" + data.Id + ".png";
image.RenderLiveTileImage(imagePath, Strings.LiveTileDueToday + ":", FormatFlipTileTemplateContent(tasksDueToday));
tile.BackgroundImage = new Uri("isostore:" + imagePath, UriKind.Absolute);
ShellTile.Create(new Uri("/TaskListPage.xaml?id=" + MostRecentTaskListClick.Id, UriKind.Relative), tile, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment