Repository navigation
|
I am trying to set a different value for the Padding of an internal control of the Expander. But unfortunately the style is not applied at all. Already tried declaring Style at App.axaml, Window element, Expander element etc. Style reference: Style: Nothing is happening. The style is simply ignored. What am I doing wrong here!? |
Replies: 1 comment 3 replies
|
Margin is set with local value priority there, so it can't be changed with styles For reasoning of this behavior you can read this article |
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.