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

backgroundcolor items combobox wpf

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.enter image description here

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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -