Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Triggers inside control template or style have orders?

Tags:

wpf

Is there any order of execution for the trigger inside a controlTemplate of Style?. eg. IsMouseOver trigger should comes first after that IsSelected?

like image 607
Kishore Kumar Avatar asked Dec 28 '22 11:12

Kishore Kumar


1 Answers

Triggers are evaluated in the order they are declared, so if multiple triggers set the same property then only the last one will take effect. If they are setting different properties then the order does not matter.

like image 81
Quartermeister Avatar answered May 29 '23 08:05

Quartermeister