跳到主要内容
版本:0.10.x

UserControl

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

PropertyDescription
ContentThe content to display in the control

Reference

UserControl

Source code

UserControl.cs