My English skill is poor because I'm not a native English speaker. I hope you to understand.
I trying to create the style of control to support the skin. Recently, I created a style for ComboBox as shown below.
<Style TargetType="{x:Type ComboBox}" BasedOn="{StaticResource {x:Type ComboBox}}">
<Setter Property="Background" Value="Transparent" />
<Setter Property="Foreground" Value="{DynamicResource ActiveTextBrush}"/>
<Style.Triggers>
<Trigger Property="IsEnabled" Value="false">
<Setter Property="Foreground" Value="{DynamicResource InActiveTextBrush}"/>
</Trigger>
<Trigger Property="IsEnabled" Value="true">
<Setter Property="Foreground" Value="{DynamicResource ActiveTextBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
The above code shows the result of the below.
Unfortunately, the result is not what I want. I wanted painting the Background color is to Black but the above code doesn't change Background color.
What I should do to achieve my goal?
Thank you for reading.