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 > Event Triggers

Event Triggers

image

If a property trigger is activated by a change in a property value, what do you suppose activates an event trigger? You don’t get a gold star for guessing an event. Specifically, a RoutedEvent. There’s another difference, as well: Event triggers only execute actions. Property triggers can execute actions via their EnterActions and ExitActions collections, but they’re primarily used to set properties. The syntax for the two types of triggers is almost identical:

image


  

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