Share via


VisualTreeHelper.GetOpenPopupsForXamlRoot(XamlRoot) Method

Definition

Retrieves a collection of all open popup controls from the target XamlRoot.

public:
 static IVectorView<Popup ^> ^ GetOpenPopupsForXamlRoot(XamlRoot ^ xamlRoot);
 static IVectorView<Popup> GetOpenPopupsForXamlRoot(XamlRoot const& xamlRoot);
public static IReadOnlyList<Popup> GetOpenPopupsForXamlRoot(XamlRoot xamlRoot);
function getOpenPopupsForXamlRoot(xamlRoot)
Public Shared Function GetOpenPopupsForXamlRoot (xamlRoot As XamlRoot) As IReadOnlyList(Of Popup)

Parameters

xamlRoot
XamlRoot

The current XamlRoot instance to retrieve the popups from.

Returns

The list of all open popups. If no popups are open, the list is empty.

Applies to