5

Windowsストアアプリを作成していますが、アニメーションが必要です

ユーザーコントロールのマージンをアニメーション化する実際の例はありますか?

再配置を使用する必要がありますか? ( doubleanimation は ucChat.margin または ucChat.margin.top をサポートしていません)

DoubleAnimation da = new DoubleAnimation();
                da.Duration = new Duration(TimeSpan.FromMilliseconds(1500));
                da.From = 0;
                da.To = -400;

                Storyboard st = new Storyboard();
                Storyboard.SetTarget(da, ucChat);
                Storyboard.SetTargetProperty(da, "ucChat.Margin.Top");
                st.Children.Add(da);

                st.Begin();

wpfではThicknessAnimationを使用できるようですが、Windowsストアアプリに同等のものはありますか?

4

0 に答える 0