I'm trying to change the foreground color of a EnumEditBox, but it will not change. When looking at the Live Visual Tree, the Foreground color is set correctly on the style. But there is another Foreground Color on the TextBox under Local. Any suggestions for how I can achieve this?
This is the code I'm using.
<UserControl.Resources>
<Style x:Key="ErrorEnumEditBox" TargetType="editors:EnumEditBox" BasedOn="{StaticResource {x:Type editors:EnumEditBox}}">
<Setter Property="Value" Value="{Binding Value, ValidatesOnExceptions=True}"/>
<Setter Property="ToolTip" Value="{Binding TooltipText}"/>
<Setter Property="Foreground" Value="{DynamicResource {x:Static themes:AssetResourceKeys.ToolBarButtonForegroundDisabledBrushKey}}" />
</Style>
</UserControl.Resources>
<editors:EnumEditBox Grid.Column="1" TextAlignment="Right" Margin="0,0,2,0" Style="{StaticResource ErrorEnumEditBox}"></editors:EnumEditBox>