Change the color of a SolidcolorBrush resource with a trigger?
Posted
by
HolySamosa
on Stack Overflow
See other posts from Stack Overflow
or by HolySamosa
Published on 2012-10-05T21:35:10Z
Indexed on
2012/10/05
21:37 UTC
Read the original article
Hit count: 241
I have a user control that uses a brush resource like the following to provide the color for several elements in the control:
<UserControl.Resources>
<SolidColorBrush x:Key="BlackBrush" Color="Black"/>
</UserControl.Resources>
Now, I'd like to change the color of this resource with a trigger to provide a highlight when a certain condition occurs.
Is this possible? If so, how?
Thanks!
© Stack Overflow or respective owner