Skip to content
Discussion options

You must be logged in to vote

Margin is set with local value priority there, so it can't be changed with styles
https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Fluent/Controls/Expander.xaml#L112

For reasoning of this behavior you can read this article
https://docs.avaloniaui.net/docs/styling/troubleshooting
Specifically "Locally set Properties override Styles" part.

Replies: 1 comment 3 replies

Comment options

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

@chkr1011
Comment options

@maxkatz6
Comment options

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