diff options
author | k0st1x | 2015-12-26 01:11:34 +0300 |
---|---|---|
committer | k0st1x | 2015-12-26 01:11:34 +0300 |
commit | 7d98c0b7de38999cfc0b81540d0ce425c7a0e15e (patch) | |
tree | bcf100fcf152d4675c64b9ebb399cd90366fbab2 /Juick/Classes | |
parent | 73443e2fd916747e9d6c0bc5b0365e50813207e0 (diff) |
migrate to WNS
Diffstat (limited to 'Juick/Classes')
-rw-r--r-- | Juick/Classes/TileHelper.cs | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/Juick/Classes/TileHelper.cs b/Juick/Classes/TileHelper.cs deleted file mode 100644 index aa26690..0000000 --- a/Juick/Classes/TileHelper.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System;
-using Microsoft.Phone.Shell;
-
-namespace Juick.Classes
-{
- static class TileHelper
- {
- public static void UpdateFlipTile(
- string title,
- string backTitle,
- string backContent,
- string wideBackContent,
- int? count,
- string smallBackgroundImageStringUri,
- string backgroundImageStringUri,
- string backBackgroundImageStringUri,
- string wideBackgroundImageStringUri,
- string wideBackBackgroundImageStringUri)
- {
- var smallBackgroundImage = CreateRelativeUri(smallBackgroundImageStringUri);
- var backgroundImage = CreateRelativeUri(backgroundImageStringUri);
- var backBackgroundImage = CreateRelativeUri(backBackgroundImageStringUri);
- var wideBackgroundImage = CreateRelativeUri(wideBackgroundImageStringUri);
- var wideBackBackgroundImage = CreateRelativeUri(wideBackBackgroundImageStringUri);
-
- // Loop through any existing Tiles that are pinned to Start.
- foreach (var tileToUpdate in ShellTile.ActiveTiles)
- {
- var updateTileData = new FlipTileData
- {
- Title = title,
- Count = count,
- BackTitle = backTitle,
- BackContent = backContent,
- SmallBackgroundImage = smallBackgroundImage,
- BackgroundImage = backgroundImage,
- BackBackgroundImage = backBackgroundImage,
- WideBackgroundImage = wideBackgroundImage,
- WideBackBackgroundImage = wideBackBackgroundImage,
- WideBackContent = wideBackContent
- };
-
- tileToUpdate.Update(updateTileData);
- }
- }
-
- static Uri CreateRelativeUri(string uriString)
- {
- return !string.IsNullOrEmpty(uriString) ? new Uri(uriString, UriKind.Relative) : null;
- }
- }
-}
|