이게 당신이 찾고있는 것이 확실하지 않지만, 일단 앱이로드되면 타일을 바꿀 수 있습니까? 다소 비슷 함 :
/// <summary>
/// Creates or replaces a tile with a Title and a parameter
/// </summary>
public void replaceTile()
{
//ShellTile TileToFind = ShellTile.ActiveTiles.First();
string tileTitle = "Title of the Tile";
//You might want to use your Parameter from the toast here as the PageName
ShellTile TileToFind = FindTile("/PageName.xaml?parameter");
StandardTileData NewTileData = new StandardTileData
{
Title = tileTitle,
BackgroundImage = new Uri("/Resources/tile_icon.png", UriKind.Relative),
Count = 0,
BackTitle = "",
//BackBackgroundImage = new Uri("/Resources/appicon_large.png", UriKind.Relative),
BackBackgroundImage = new Uri("", UriKind.Relative),
BackContent = ""
};
// Application should always be found, since it is always the first tile (even if not on homescreen)
if (TileToFind == null)
{
// Update the Application Tile with the NewTileData
//TileToFind.Update(NewTileData);
//Or replace an existing (second) tile with the new, updated Tile
//ShellTile alreadyExistingTile = FindTile("/PageName.xaml?parameter");
//if (alreadyExistingTile != null)
//{
// alreadyExistingTile.Delete();
//}
ShellTile.Create(new Uri("/PageName.xaml?parameter=" + newParameter, UriKind.Relative), NewTileData);
}
else
{
TileToFind.Update(NewTileData);
}}
재미있는 질문입니다. 하지만 알림을 사용할 때 배달 보장이 없습니다. 따라서 타일 문제를 해결할 수 있다고해도 앱이 "화재 및 잊어 버리기 메커니즘"에 의존하는 것이 실제로 안전합니까? –
그건 제가 생각해야 할 위험입니다. 이 앱은 소비자를위한 앱이 아니라 사적인 앱을 제공합니다. 차라리 실패한 푸시 알림의 1 % 변경에 대해 걱정하는 것보다이 문제를 해결할 것입니다. –