Window.CoreWindow Propriété

Définition

Les applications de bureau retournent null toujours pour cette propriété.

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

Valeur de propriété

La valeur est null pour les applications de bureau.

Attributs

Remarques

L’objet Window implémente IWindowNative, par le biais duquel les applications de bureau peuvent obtenir le HWND sous-jacent de .Window

S’applique à

Voir aussi