wpf - How change the background color of the dropdown panel of Combobox -
i want change background color of drowpdown panel of combobox. i'm using wpf. i've read post
and i've written code:
<combobox 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"> <combobox.itemcontainerstyle> <style targettype="{x:type comboboxitem}"> <setter property="background" value="blue" /> </style> </combobox.itemcontainerstyle> </combobox>
i have obtained result in picture.
i want entire panel blue, included little border around single item. how can change code in order solve problem? thank you
what seeing missing border color of container. set borderbrush
value blue
needed itemcontainerstyle
remove white
looking border.
Comments
Post a Comment