Dela via


UserControl.Content Property

Definition

Gets or sets the content that is contained within a user control.

public:
 property UIElement ^ Content { UIElement ^ get(); void set(UIElement ^ value); };
UIElement Content();

void Content(UIElement value);
public UIElement Content { get; set; }
var uIElement = userControl.content;
userControl.content = uIElement;
Public Property Content As UIElement
<UserControl ...>
  singleContentElement
</UserControl>
-or-
<UserControl .../>

Property Value

The content of the user control.

Applies to