Share via


DesktopWindowXamlSource.Content 属性

定义

获取或设置要在桌面应用程序中托管的 Microsoft.UI.Xaml.UIElement 对象。

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

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

属性值

要在桌面应用程序中托管的对象。

适用于