Window.Content Property

Definition

Gets or sets the visual root of an application window.

Equivalent WinUI property: Microsoft.UI.Xaml.Window.Content.

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

void Content(UIElement value);
public UIElement Content { get; set; }
var uIElement = window.content;
window.content = uIElement;
Public Property Content As UIElement

Property Value

UIElement

The visual root of an application window.

Applies to