Window.CoreWindow Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Desktop apps always return null
for this property.
public:
property CoreWindow ^ CoreWindow { CoreWindow ^ get(); };
CoreWindow CoreWindow();
/// [get: Windows.Foundation.Metadata.Deprecated("The CoreWindow property is deprecated and always returns null", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
CoreWindow CoreWindow();
public CoreWindow CoreWindow { get; }
public CoreWindow CoreWindow { [Windows.Foundation.Metadata.Deprecated("The CoreWindow property is deprecated and always returns null", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")] get; }
var coreWindow = window.coreWindow;
Public ReadOnly Property CoreWindow As CoreWindow
Property Value
Value is null
for Desktop apps.
- Attributes
Remarks
The Window object implements IWindowNative, through which Desktop apps can get the underlying HWND of the Window
.