Replies: 2 comments 5 replies
-
That is explained in the info here. If you want to apply |
Beta Was this translation helpful? Give feedback.
3 replies
-
Thanks a lot, solved the issue. So if I get it right. No style of my CustomButton is set so I will not see anything. But then, what do I need to set in the style for it to become visible in some sensible way? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just started to learn Avalonia and trying out some things. Like modifying examples that I can find.
So I found an example where a Border is converted to a CustomBorder. In its simplest form it is just:
public class CustomBorder : Border {}
If I include this in my xaml file it works like a Border. No surprise for me.
If I do exactly the same thing for a Button it does not work:
public class CustomButton : Button {}
Then if I include it in my xaml file. The button is not shown in my window.
Why is this?
Beta Was this translation helpful? Give feedback.
All reactions