Skip to content
Discussion options

You must be logged in to vote

Ok. I found what I'm looking for, the way Avalonia does it is a bit round-about, but it works. I should have actually started with the example of the control I wanted to make - I want to make the equivalent of the classic WPF GroupBox control, which I can use to wrap any child content in a square with a header, and some styling like padding etc. Searching for that specific use-case led to this piece of official Avalonia documentation (https://docs.avaloniaui.net/docs/tutorials/groupbox), which was a good start.

Instead of using the built-in HeaderedContentControl Avalonia I made my own base, the source at https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls/Primitives/…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shukriadams
Comment options

@stevemonaco
Comment options

@shukriadams
Comment options

Answer selected by shukriadams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants