I want to change the background color of the drowpdown panel of the combobox.
I'm using WPF.
I've read this post
and I've written this code:
Width="{StaticResource UnityX3}"
styles:Typhography.TypeSize="Body1"
Margin="12 0 0 0"
Foreground="{StaticResource Viola1Brush}"
DisplayMemberPath="AuthorName"
SelectedItem="{Binding Path=ConsoleViewModel.AnswersViewModel.SelectedAuthor}"
ItemsSource="{Binding ConsoleViewModel.AnswersViewModel.Authors}"
Grid.Column="1">
I have obtained the result in the picture.
I want that the entire panel is blue, included the little border around the single item.
How can I change my code in order to solve my problem?
Thank you
解决方案
What you are seeing is a missing border color of the container. Set the BorderBrush value to the Blue for what is needed by the ItemContainerStyle to remove the White looking border.