IDesktopWindowXamlSourceNative interface (windows.ui.xaml.hosting.desktopwindowxamlsource.h)

Provides members you can use to attach a DesktopWindowXamlSource object that hosts a WinRT XAML control to a parent UI element in your desktop app.

Inheritance

The IDesktopWindowXamlSourceNative interface inherits from the IUnknown interface.

Methods

The IDesktopWindowXamlSourceNative interface has these methods.

 
IDesktopWindowXamlSourceNative::AttachToWindow

Attaches the current IDesktopWindowXamlSourceNative instance to a parent UI element in your desktop app that is associated with a window handle.
IDesktopWindowXamlSourceNative::get_WindowHandle

Gets the window handle of the parent UI element that is associated with the current IDesktopWindowXamlSourceNative instance.

Remarks

This interface is implemented by the DesktopWindowXamlSource class. DesktopWindowXamlSource is a key component the WinRT XAML hosting API, which desktop apps can use to host WinRT XAML controls in any UI element that is associated with a window handle (this feature is also called XAML Islands).

Requirements

   
Minimum supported client Windows 10, version 1903 (build 18362)
Header windows.ui.xaml.hosting.desktopwindowxamlsource.h

See also

Using the UWP XAML hosting API in a C++ desktop (Win32) app