Window.CoreWindow Property

Definition

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.

Applies to

See also