Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ElementCompositionPreview.SetAppWindowContent(AppWindow, UIElement) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

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

Parameters

appWindow
AppWindow

The AppWindow to set the content for.

xamlContent
UIElement

The content to set.

Windows requirements

Requirements Description
Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Applies to


Feedback

Was this page helpful?