Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 1.39 KB

File metadata and controls

26 lines (18 loc) · 1.39 KB
-api-id T:Windows.UI.Xaml.Hosting.WindowsXamlManager
-api-type winrt class
ms.custom RS5, 19H1

Windows.UI.Xaml.Hosting.WindowsXamlManager

-description

Represents the UWP XAML framework in a non-UWP desktop application (for example, a WPF or Windows Forms application) that hosts UWP controls.

Equivalent WinUI class: Microsoft.UI.Xaml.Hosting.WindowsXamlManager.

-remarks

WindowsXamlManager is part of the UWP XAML hosting API. This API enables non-UWP desktop applications to host any control that derives from Windows.UI.Xaml.UIElement) in a UI element that is associated with a window handle (HWND). This API can be used by desktop applications built using WPF, Windows Forms, and the Windows API (Win32). For more information, see Using the UWP XAML hosting API in a desktop application.

WindowsXamlManager provides a static InitializeForCurrentThread method you can use to initialize the UWP XAML framework on the current thread.

-see-also

Using the UWP XAML hosting API in a desktop application

-examples