ElementCompositionPreview.SetAppWindowContent(AppWindow, UIElement) Metode

Definisi

Mengatur UIElement XAML sebagai akar konten 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)

Parameter

appWindow
AppWindow

AppWindow untuk mengatur konten.

xamlContent
UIElement

Konten yang akan diatur.

Persyaratan Windows

Rangkaian perangkat
Windows 10, version 1903 (diperkenalkan dalam 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v8.0)

Berlaku untuk