Open SKProCH opened 1 year ago
It's not a bug, but not a supported feature. Initially, it wasn't implemented due to the possibility of a circled loop of classes. I.e. class that disables itself in the style. Problem, that possibly can be ignored, but still would be pretty hard to diagnose.
It's not a bug, but not a supported feature. Initially, it wasn't implemented due to the possibility of a circled loop of classes. I.e. class that disables itself in the style. Problem, that possibly can be ignored, but still would be pretty hard to diagnose.
Sounds like if we get a circled loop of classes we also get StackOverflowException, isn't it?
Second the request, this would allow avoiding code duplication and reusing Style classes to define styling for child elements. See #13906 for details.
Describe the bug Avalonia has
Classes.accent="{Binding IsSpecial}"
markup.https://docs.avaloniaui.net/docs/next/basics/user-interface/styling/style-classes#conditional-classes
But when i try to use it inside of setter if doesn't work and throws compilation error.
To Reproduce Steps to reproduce the behavior:
Expected behavior Classes can be set via style/ControlTheme setters.
Desktop (please complete the following information):