WPF reference style in resource dictionary and use triggers
Posted
by Taylor
on Stack Overflow
See other posts from Stack Overflow
or by Taylor
Published on 2010-04-19T15:29:23Z
Indexed on
2010/04/19
15:33 UTC
Read the original article
Hit count: 315
I have a style defined in a resource dictionary that applies to all ComboBox controls. Within the ComboBox control, I reference the style like so:
Style="{DynamicResource MyComboBoxStyle}"
This works ok.
I want to be able to add some triggers to some of the ComboBox controls. What is a good way to use the style referenced as a dynamic resource yet still be able to add triggers to some of the ComboBox controls?
© Stack Overflow or respective owner