June 2008
Beginner
480 pages
9h 41m
English
What You’ll Learn in This Hour:
The rationale for triggers
Trigger types
Applying triggers to the Media Viewer
Triggers are the gateway to a wealth of WPF functionality. Up to now, our graphics and control templates have been fairly static and unresponsive to user input or changes in data. Triggers give us the power to change all that in a simple and intuitive way.
Triggers are a special feature of Style, ControlTemplate, DataTemplate, and FrameworkElement. Through the careful use of triggers, you can declaratively enable your UI and graphics to respond to mouse events, changes in dependency properties, and even changes in your application’s data model. Let’s look at one of the most common uses of a Trigger
Read now
Unlock full access