Share via


Window.Current Proprietà

Definizione

Ottiene la finestra del thread corrente.

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

Valore della proprietà

Finestra attualmente attivata.

Commenti

Il valore di questa proprietà dipende dal thread da cui viene chiamato. Se viene chiamato da un thread dell'interfaccia utente, il valore è l'istanza di Window per tale thread. In qualsiasi altro thread, il valore è null.

Si applica a