Thanks, that worked.
Following the same logic, I've tried setting also the item highlight color but it doesn't work (using FocusColor or an explicit value).
What am I doing wrong?:
<Style TargetType="ComboBox">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBoxItem">
<Border x:Name="Border" BorderBrush="{StaticResource ControlBackgroundColor}">
<ContentPresenter />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsHighlighted" Value="True">
<Setter Property="Panel.Background" TargetName="Border" Value="{StaticResource FocusColor}"/>
</Trigger>
<Trigger Property="IsHighlighted" Value="False">
<Setter Property="Panel.Background" TargetName="Border" Value="{StaticResource ControlBackgroundColor}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
↧