Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. var animation = new DoubleAnimation
  2. {
  3. To = 0.0,
  4. Duration = TimeSpan.FromSeconds(5),
  5. FillBehavior = FillBehavior.HoldEnd
  6. };
  7.  
  8. Storyboard story = new Storyboard();
  9. Storyboard.SetTarget(animation, element1);
  10. Storyboard.SetTargetProperty(animation, "Opacity");
  11. story.Children.Add(animation);
  12. story.Begin();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement