Replies: 1 comment 1 reply
-
Seems like Avalonia issue with generic property |
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
-
I have some experience with WPF development. I usually create a generic behavior base class and then use it as the base for creating actual behaviors. With this approach I can use the behavior directly on the WPF style or control.
https://stackoverflow.com/a/31292989/6231009
My question is, is there a similar way to create such a generic behavior base class for Avalonia with Avalonia.Xaml.Behaviors nuget?
I tried it with following code, but failed.
Error message from Visual Studio:
Unable to resolve suitable regular or attached property IsEnabledForStyle on type AvaApp:AvaApp.Behaviors.DragMoveBehavior Line 1, position 2.
Env:
.net 9.0
Window 10
Avalonia 11.2.1
Avalonia.Xaml.Behaviors 11.2.0
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions