I am trying to create a label style that applies a foreground color defined in a brushes resource directory.
<Color x:Key="TextForegroundColor" >#8B4513</Color>
<SolidColorBrush
x:Key="TextForegroundColorBrush"
Color="{Binding Source={StaticResource TextForegroundColor}, Path=Color}" />
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="MVILabelStyle" TargetType="{x:Type Label}">
<Setter Property="HorizontalAlignment" Value="Right" />
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Foreground" Value="{StaticResource TextForegroundColorBrush}" />
</Style>
When I run the app, the foreground is not applied, but all of the others are. What am I doing wrong?