I'm trying to bind a value to the Classes
property of some Avalonia Control from within a Style.
But I get a Classes is not an AvaloniaProperty error diagnostic.
The example below demonstrates the problem.
<Style Selector="Button">
<Setter Property="Classes" Value="{Binding MyClasses}" />
</Style>
What is the correct way to bind to Classes from within a Style?
Note that in my application I have a proper reason to bind to the Classes property, unlike in the (contrived) example above which only serves to reproduce the problem.