I am writing a Windows 10 universal app in C# and i want to create a tile with a specific text on it that can change. Therefore I used the sample code form microsoft MSDN (the second one). But this does not work for all tiles, only the medium one shows the text "medium" on in, the others have just the app logo on it. I wonder what else is needed to force the other tiles to update.
This is the code I used to make the tile update:
public static void updateTile(){
TileContent content = new TileContent() {
Visual = new TileVisual() {
TileSmall = new TileBinding() {
Content = new TileBindingContentAdaptive() {
Children = {
new TileText() { Text = "Small" }
}
}
},
TileMedium = new TileBinding() {
Content = new TileBindingContentAdaptive() {
Children = {
new TileText() { Text = "Medium" }
}
}
},
TileWide = new TileBinding() {
Content = new TileBindingContentAdaptive() {
Children = {
new TileText() { Text = "Wide" }
}
}
},
TileLarge = new TileBinding() {
Content = new TileBindingContentAdaptive() {
Children = {
new TileText() { Text = "Large" }
}
}
}
}
};
// And then update the primary tile
TileUpdateManager.CreateTileUpdaterForApplication().Update(new TileNotification(content.GetXml()));
}