Replies: 1 comment 1 reply
-
See #18068 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In axaml I can binde Visual classes to boolean property like this
This bindings generate dynamyc avalonia properties
__AvaloniaReserved::Classes::normal
and__AvaloniaReserved::Classes::failure
.Is there any way to create custom dynamic properties, like this?
For example, I want to archive the next usecase:
I have some enum
and some view model
so in axaml I wish to write something like this
and as result, I get
TextBlock
with classes (ok-foo-state
ORfailure-foo-state
) AND (ok-bar-state
ORfailure-bar-state
), l.e., class name is combination of<enum value>-<property name>
.Beta Was this translation helpful? Give feedback.
All reactions