Mango Application Tile - remove back

后端 未结 3 1626
逝去的感伤
逝去的感伤 2021-01-07 18:44

This is a simple question, and a seemingly simple task but I can\'t find any info on how to accomplish what I need to do.

I have an application whose main tile (wh

3条回答
  •  情深已故
    2021-01-07 19:24

    This one works for me.

    new Uri("Background.png", UriKind.RelativeOrAbsolute);
    
    ShellTile TileToFind = ShellTile.ActiveTiles.First();
    
            if (TileToFind != null)
            {
    
                StandardTileData NewTileData = new StandardTileData
                {
                    Title ="Status",
                    BackgroundImage = new Uri("Background.png", UriKind.RelativeOrAbsolute),
                    Count = 0,
                    BackTitle = "",
                    BackBackgroundImage = new Uri("doesntexist.png", UriKind.RelativeOrAbsolute),
                    BackContent = ""
                };
    
                TileToFind.Update(NewTileData);
            }
    

提交回复
热议问题