Share via


Window.Current Propriété

Définition

Obtient la fenêtre du thread actif.

public:
 static property Window ^ Current { Window ^ get(); };
static Window Current();
public static Window Current { get; }
var window = Window.current;
Public Shared ReadOnly Property Current As Window

Valeur de propriété

Fenêtre actuellement activée.

Remarques

La valeur de cette propriété dépend du thread à partir duquel elle est appelée. Si elle est appelée à partir d’un thread d’interface utilisateur, la valeur est l’instance Window pour ce thread. Sur n’importe quel autre thread, la valeur est null.

S’applique à