Change the color of a SolidcolorBrush resource with a trigger?
- by HolySamosa
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!