VisualTreeHelper.GetOpenPopupsForXamlRoot(XamlRoot) VisualTreeHelper.GetOpenPopupsForXamlRoot(XamlRoot) VisualTreeHelper.GetOpenPopupsForXamlRoot(XamlRoot) 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 xamlRoot) const;
public static IReadOnlyList<Popup> GetOpenPopupsForXamlRoot(XamlRoot xamlRoot)
Public Shared Function GetOpenPopupsForXamlRoot(xamlRoot As XamlRoot) As IReadOnlyList<Popup>(Of Popup)

Parameters

xamlRoot
XamlRoot XamlRoot

The current XamlRoot instance to retrieve the popups from.

Returns

IReadOnlyList<Popup> IReadOnlyList<Popup>

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

Additional features and requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)