开发者

WPF Datagrid, Setting the background of combox popup

I would like to change the color of the popup background when using a DatagridComboboxColumn in the WPF Toolkit datagrid.开发者_开发知识库 I've edited the Template for a normal Combobox and it works great for selected item and other properties but the background stays white. I've used Snoop to do some research into the template and it claims that the DropdownBorder's background is set by the parent template but I can't figure out which template that is.

Any ideas?


You have to change ItemContainerStyle, that contains style and template to control background/selected color etc. Because ItemContainerStyle of ListBox and ComboBox has IsSelected property that can be used for setting trigger for changing background color.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜