-
Hi guys, Hope you can help. I'm using the latest version of Avalonia under Linux. I am trying to inherit from the ToggleButton but as soon as I create even a simple class e.g. public ToggleButton2 : ToggleButton and use it in my project, the button appears but it has lost all of it's interactive functionality. it just appears as if disabled. Am I doing something wrong or is this a bug? Same thing happens if I try button or radio button etc. As soon as I use the inherited class all functionality is gone. Cheers, Damien. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Figured it out. I needed to add: protected override Type StyleKeyOverride => typeof(Button); |
Beta Was this translation helpful? Give feedback.
Figured it out. I needed to add: protected override Type StyleKeyOverride => typeof(Button);