MCTS Self-Paced Training: Styles and Animation in Windows Presentation Foundation
- 7/9/2008
Lesson 1: Styles
Styles allow you to create a cohesive look and feel for your application. You can use styles to define a standard color and sizing scheme for your application and use triggers to provide dynamic interaction with your UI elements. In this lesson, you learn to create and implement styles. You learn to apply a style to all instances of a single type and to implement style inheritance. You learn to use setters to set properties and event handlers, and you learn to use triggers to change property values dynamically. Finally, you learn about the order of property precedence.