vain0x / DotNetKit.Wpf.AutoCompleteComboBox

ComboBox with filtering (auto-complete) for WPF
MIT License
71 stars 25 forks source link

Unable to set background color #31

Closed Cellus250 closed 1 month ago

Cellus250 commented 1 month ago

Hello thank you for the control. It works great. However, I have been unable to apply a background color to the control using the Background property.

Is there a certain way this needs to be set or overridden?

Thanks.

vain0x commented 1 month ago

@Cellus250 AutoCompleteComboBox is basically ComboBox with IsEditable=True except for behaviors. WPF combobox doesn't seem to support Background. (You could use ControlTemplate or something maybe?)

    <ComboBox IsEditable="True" IsTextSearchEnabled="False" ItemsSource="{Binding Items}" Background="Blue" />
Cellus250 commented 1 month ago

Okay, that makes sense. Thanks for the support.