avalonia docs


UserControl control is a ContentControl that represents a reusable collection of controls in a predefined layout.

UserControl actually provides very little functionality on top of ContentControl. The difference is that you will not usually create instances of the UserControl class directly; instead a new subclass of the UserControl class is usually created for each "view" to be shown by an application. For information on how to create new UserControl classes from templates see the quickstart.

Common Properties

Property Description
Content The content to display in the control



Source code