Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

20. Resources > Storyboards

Storyboards

You can, of course, use the WPF animation objects in code, but whenever you want to perform an animation in XAML, you must wrap the Timeline objects inside a Storyboard. Target, TargetName and TargetPropery are attached properties; you can specify them for the Storyboard as a whole, or for individual Timelines. (We’ll discuss those next.)

image

Put on Your Thinking Hat

image

Can you write the following declarations? If you want to try out your code snippets, remember that they usually live inside an event trigger, which in turn usually lives inside a style.

A Storyboard that targets the Background property of the element that is being styled.

A Storyboard that targets the Opacity property of a Label with the x:Name set to MyLabel.

A Storyboard that targets the Background property of the element being styled, and repeats three times over 3.5 seconds.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint