ElementCompositionPreview.SetAppWindowContent(AppWindow, UIElement) 方法

定义

将 XAML UIElement 设置为 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)

参数

appWindow
AppWindow

要为其设置内容的 AppWindow。

xamlContent
UIElement

要设置的内容。

Windows 要求

设备系列
Windows 10, version 1903 (在 10.0.18362.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v8.0 中引入)

适用于