A trigger enables you to change property values when certain conditions are satisfied. It can also enable you to take actions based on property values by allowing you to dynamically change the appearance and/or the behavior of your control without writing additional codes in the code behind classes.
In WPF, the triggers are usually defined in a style or in the root of an element, which are applied to that specific control. There are five types of triggers:
- Property trigger
- Multi trigger
- Data trigger
- Multidata trigger
- Event trigger