
Hello,
We have different themes in our application.
I want to override the style of the SearchOverlayPane. It's ok for buttons or border by overriding style as the following code:
<SolidColorBrush x:Key="{x:Static themes:AssetResourceKeys.ContainerBackgroundLowBrushKey}" Color="Blue" />
<SolidColorBrush x:Key="{x:Static themes:AssetResourceKeys.ToolBarButtonBackgroundHoverBrushKey}" Color="Red" />
But I have a very weird behavior with the combobox under PART_SearchScopeComboBox
If I change the style of the Background color (which is white by default) and lauch again then the color is always white but the key name is not the same as the previous one.
How to reproduce:
Background point to Key_1 (which is white)
I modify Key_1 to Red in my XAML
Launch again
Background point now to Key_2 (which is white) and not to Key_1!!!
I modify Key_2 to Blue in my XAML
Launch again
Background point now to Key_3 (which is white) and not to Key_1 nor Key_2 !!!
and so on...
How can I change the color of the background, foreground, selected_background or hover, of this combobox?
Thanks