Using a StaticResource SolidColorBrush to define the Gradient Stop Colors
问题 I am creating some wpf resource dictionaries with all the styles for an application! I have a few LinearGradientBrush es, where the color is set directly in the L inearGradientBrush reference as GradientStop s. However, I want to have a predefined set of colors that I can use a a reference for each GradientStop , so that changing the color scheme for the application is a matter of changing the values of the SolidColorBrush es: <SolidColorBrush Color="#5A5A5A" x:Key="colorbrushMedium" />