Skip to content
Discussion options

You must be logged in to vote

It seems the properties for the popup border are set directly on the Border with {DynamicResource }. There's a limitation with Avalonia's styling system right now that means these have style priority over everything else, so unfortunately you'll have to re-template the entire ComboBox to achieve what you want:

<Border x:Name="PopupBorder"
Background="{DynamicResource ComboBoxDropDownBackground}"
BorderBrush="{DynamicResource ComboBoxDropDownBorderBrush}"
BorderThickness="{DynamicResource ComboBoxDropdownBorderThickness}"
Margin="0,-1,0,-1"

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@maxkatz6
Comment options

@somethingTacos
Comment options

@timunie
Comment options

timunie May 17, 2022
Collaborator

Answer selected by somethingTacos
Comment options

You must be logged in to vote
1 reply
@timunie
Comment options

timunie Aug 4, 2022
Collaborator

Comment options

You must be logged in to vote
1 reply
@DirkDoes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants