IWindowNative interface (microsoft.ui.xaml.window.h)
Enables interoperability between XAML and a native window. This interface is implemented by Microsoft.UI.Xaml.Window, which desktop apps can use to get the underlying HWND of the window.
Inheritance
The IWindowNative interface inherits from the IUnknown interface.
Methods
The IWindowNative interface has these methods.
IWindowNative::get_WindowHandle Retrieves the window handle (HWND) of the window represented by the object that implements IWindowNative. |
Remarks
For more info, and code examples, see Retrieve a window handle (HWND).
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1809 (with Windows App SDK 0.5 or later) |
Header | microsoft.ui.xaml.window.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for