0

スタート画面に固定されているメイン アプリケーション タイルにアニメーションを追加したいと考えています。CreateApplicationTile() メソッドで HubTile を作成することを考えましたが、これが可能かどうか、またはどのように達成されるかわかりません。助言がありますか?

MainPage.xaml.cs

public void CreateApplicationTile()
    {
        BitmapImage bitmap = new BitmapImage();
        bitmap.UriSource = new Uri("/Background.png", UriKind.Relative);

        HubTile tile = new HubTile
        {
            Title = "ShareSky",
            Source = bitmap

        };

        var appTile = ShellTile.ActiveTiles.First();

        if (appTile != null)
        {
            var standardTile = new StandardTileData
            {
                //Title = "ShareSky",
                ////BackgroundImage = new Uri("Images/SecondaryTileFrontIcon.jpg", UriKind.Relative),
                ////Count = 13, // any number can go here, leaving this null shows NO number
                //BackTitle = "ShareSky",
                ////BackBackgroundImage = new Uri("Images/ApplicationTileIcon.jpg", UriKind.Relative),
                //BackContent = "Click Me!"                    
            };

            appTile.Update(standardTile);
        }
    }
4

1 に答える 1

0

これは、Windows Phone 7.5 では実行できません。これは、Windows Phone 8 で計画されているものです。

于 2012-08-15T04:20:33.127 に答える