C# 尝试从独立存储设置映像时获取NotSupportedException
我正在尝试在应用程序的后台代理中为我的磁贴设置图像:C# 尝试从独立存储设置映像时获取NotSupportedException,c#,windows-phone-8,C#,Windows Phone 8,我正在尝试在应用程序的后台代理中为我的磁贴设置图像: ShellTile t = ShellTile.ActiveTiles.First(); if (t != null) { var filePath = Path.Combine("Tiles", "test1.jpg"); StandardTileData tile = new StandardTileData(); tile.Title = "Title text here"; tile.Backgro
ShellTile t = ShellTile.ActiveTiles.First();
if (t != null)
{
var filePath = Path.Combine("Tiles", "test1.jpg");
StandardTileData tile = new StandardTileData();
tile.Title = "Title text here";
tile.BackgroundImage = new Uri(@"isostore:\" + filePath, UriKind.Absolute);
t.Update(tile);
}
但是在t.updateile上,它抛出NotSupportedException:-路径不是isostore:\correct吗?新建Uri@isostore:+文件路径,UriKind.Absolute
没有反斜杠