예제 #1
0
 public void GigglePlaylist()
 {
     DispatchManager.RunOnDispatcher(() =>
     {
         PlaylistTransform.ScaleX = 1.5;
         PlaylistTransform.ScaleY = 1.5;
         AnimationTools.AnimateDouble(PlaylistTransform, "ScaleX", 1.0, 1250, null, false, true);
         AnimationTools.AnimateDouble(PlaylistTransform, "ScaleY", 1.0, 1250, null, false, true);
     });
 }
예제 #2
0
        async Task StartDissolvingAsync()
        {
            try
            {
                await rtb.RenderAsync(SplitContent);

                DissolveImage.Source = rtb;

                DissolveImage.Visibility = Visibility.Visible;
                DissolveImage.Opacity    = 1.0;
                AnimationTools.AnimateDouble(DissolveImage, "Opacity", 0.0, 300, () =>
                {
                    DissolveImage.Visibility = Visibility.Collapsed;
                });

                SplitContentTransform.Y = 25;
                AnimationTools.AnimateDouble(SplitContentTransform, "Y", 0, 150);
            }
            catch
            {
                // Ignore error
                DissolveImage.Visibility = Visibility.Collapsed;
            }
        }