Window.CoreWindow 属性

定义

桌面应用始终返回 null 此属性。

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

属性值

null值适用于桌面应用。

属性

注解

Window 对象实现 IWindowNative,通过 IWindowNative,桌面应用可以获取 的基础 WindowHWND。

适用于

另请参阅