ElementCompositionPreview.SetAppWindowContent(AppWindow, UIElement) ElementCompositionPreview.SetAppWindowContent(AppWindow, UIElement) ElementCompositionPreview.SetAppWindowContent(AppWindow, UIElement) ElementCompositionPreview.SetAppWindowContent(AppWindow, UIElement) Method

Definition

Sets a XAML UIElement as the content root of an AppWindow.

public : static void SetAppWindowContent(AppWindow appWindow, UIElement xamlContent)
static void SetAppWindowContent(AppWindow appWindow, UIElement xamlContent) const;
public static void SetAppWindowContent(AppWindow appWindow, UIElement xamlContent)
Public Shared Sub SetAppWindowContent(appWindow As AppWindow, xamlContent As UIElement)

Parameters

appWindow
AppWindow AppWindow

The AppWindow to set the content for.

xamlContent
UIElement UIElement

The content to set.

Additional features and requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)