Inheritance: Timeline, IPointerUpThemeAnimation
Exemplo n.º 1
0
        private static void ShowUpAnimation(UIElement element)
        {
            var animation = new PointerUpThemeAnimation();
            Storyboard.SetTarget(animation, element);

            var storyboard = new Storyboard();
            storyboard.Children.Add(animation);
            storyboard.Begin();
        }
Exemplo n.º 2
0
 private static void DisplayUpAnimation(DependencyObject sender)
 {
     if (sender!=null && GetIsDown(sender))
     {
         Storyboard sb = new Storyboard();
         PointerUpThemeAnimation animation = new PointerUpThemeAnimation();
         Storyboard.SetTarget(animation, sender as FrameworkElement);
         sb.Children.Add(animation);
         sb.Begin();
         SetIsDown(sender, false);
     }
 }