AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
26.04k stars 2.25k forks source link

How to set the background color of a ComboBox dropdown box? #17582

Open tangxiaoqi-tangxiao opened 1 day ago

tangxiaoqi-tangxiao commented 1 day ago

Is your feature request related to a problem? Please describe.

image

    <Style Selector="ComboBoxItem">
        <Setter Property="Background" Value="#484848" ></Setter>
    </Style>
    <Style Selector="ComboBox">
        <Setter Property="Background" Value="#484848" ></Setter>
    </Style>
    <Style Selector="VirtualizingStackPanel">
        <Setter Property="Background" Value="Red"/>
    </Style>

Describe the solution you'd like

I hope to set it to the color I need.

Describe alternatives you've considered

No response

Additional context

No response