public void Reload()
        {
            this.BeginAnimation(FrameworkElement.OpacityProperty, null);
            Img.BeginAnimation(FrameworkElement.OpacityProperty, null);
            Visibility = Visibility.Visible;
            Opacity    = 1;
            Storyboard s = (Storyboard)TryFindResource("AnimationShow");

            s.Begin();  // Start animation
            this.Opacity = 1;
        }
示例#2
0
 private void Grid_MouseEnter(object sender, MouseEventArgs e)
 {
     (sender as Grid).Background.BeginAnimation(SolidColorBrush.ColorProperty, glow);
     Img.BeginAnimation(OpacityProperty, fadeIn);
 }