Compartilhar via


VisualTreeElementExtensions.GetVisualElementWindow(IVisualTreeElement) Método

Definição

Obtém a janela que contém o Elemento Árvore Visual, se o elemento estiver contido em um.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Maui::IWindow ^ GetVisualElementWindow(Microsoft::Maui::IVisualTreeElement ^ element);
public static Microsoft.Maui.IWindow? GetVisualElementWindow (this Microsoft.Maui.IVisualTreeElement element);
static member GetVisualElementWindow : Microsoft.Maui.IVisualTreeElement -> Microsoft.Maui.IWindow
<Extension()>
Public Function GetVisualElementWindow (element As IVisualTreeElement) As IWindow

Parâmetros

Retornos

IWindow se o elemento estiver contido em uma janela, o restante retornará nulo.

Aplica-se a