' Pin To Start'自定义瓷砖

时间:2014-08-12 09:40:09

标签: html windows-phone-8

当用户在其wp8 / wp8.1手机上“Pins To Start”时,如何更改保存为实时图块的图像?我可以修改一下吗?

我猜是有某种元标记或其他我不知道的东西。

编辑很抱歉,我真的应该澄清一下,这是为了当您开始网页并且它出现在开始菜单中时。我确信有一个元标记进入解决它的部分。或者它与Favicon有关吗?

2 个答案:

答案 0 :(得分:0)

可能你可以尝试这个,这是用于固定辅助磁贴。我不确定是否可以在主磁贴中更改图像

 StandardTileData standardTileData = new StandardTileData();


            standardTileData.BackgroundImage = new Uri("ApplicationIcon.png", UriKind.Relative);

            standardTileData.Title = "Your title";
            standardTileData.Count = 26;
            standardTileData.BackTitle = "Pinned";
            standardTileData.BackContent = "Tile";
            standardTileData.BackBackgroundImage = "Your image URL";



            ShellTile tiletopin = ShellTile.ActiveTiles.FirstOrDefault(x => x.NavigationUri.ToString().Contains("MainPage.xaml"));


            if (tiletopin == null)
            {
                ShellTile.Create(new Uri("/MainPage.xaml", UriKind.Relative), standardTileData);
            }
            else
            {
                MessageBox.Show("Already Pinned");
            }

答案 1 :(得分:0)

要更改固定磁贴上的图像,您需要更新WMAppManifest.xml文件中的图像。 打开解决方案资源管理器中“属性”中的WMAppManifest.xml文件: enter image description here

打开文件后,转到“应用程序UI”选项卡并更新小,中,大尺寸的图标。固定应用程序图标时出现的图标是“中”图标。所以这会出现:

enter image description here