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

Provides a method that enables the WinRT XAML framework to process Windows messages for a DesktopWindowXamlSource object that hosts a WinRT XAML control.

Inheritance

The IDesktopWindowXamlSourceNative2 interface inherits from the IDesktopWindowXamlSourceNative interface.

Methods

The IDesktopWindowXamlSourceNative2 interface has these methods.

 
IDesktopWindowXamlSourceNative2::PreTranslateMessage

Enables the WinRT XAML framework to process a Windows message for a DesktopWindowXamlSource object that hosts a WinRT XAML control.

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

Requirement Value
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