Created
January 22, 2015 01:40
-
-
Save angusbreno/8200cbae01514dc85b7e to your computer and use it in GitHub Desktop.
Demo Main Tile (Switch Tile Color background) Win RT 8.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Just put diferent images (transparents and colored) and change like this... | |
private async void btColored_Tapped(object sender, TappedRoutedEventArgs e) | |
{ | |
var folder = Windows.ApplicationModel.Package.Current.InstalledLocation; | |
var assetsfolder = await folder.GetFolderAsync("Assets"); | |
var file = await assetsfolder.GetFileAsync("squaretile-sdkWithColor.png"); | |
var oldfile = await assetsfolder.GetFileAsync("squaretile-sdk.png"); | |
await file.CopyAndReplaceAsync(oldfile); | |
TileUpdateManager.CreateTileUpdaterForApplication().Clear(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void btTransparent_Tapped(object sender, TappedRoutedEventArgs e) | |
{ | |
var folder = Windows.ApplicationModel.Package.Current.InstalledLocation; | |
var assetsfolder = await folder.GetFolderAsync("Assets"); | |
var file = await assetsfolder.GetFileAsync("squaretile-sdkWithOutColor.png"); | |
var oldfile = await assetsfolder.GetFileAsync("squaretile-sdk.png"); | |
await file.CopyAndReplaceAsync(oldfile); | |
TileUpdateManager.CreateTileUpdaterForApplication().Clear(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment