Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

VisualTreeHelper.GetOpenPopupsForXamlRoot(XamlRoot) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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.

Windows requirements

Requirements Description
Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Applies to


Feedback

Was this page helpful?