This topic has not yet been rated - Rate this topic

VisualTreeHelper.GetOpenPopups Method

Silverlight

Gets all open Popup controls.

Namespace:  System.Windows.Media
Assembly:  System.Windows (in System.Windows.dll)
public static IEnumerable<Popup> GetOpenPopups()

Return Value

Type: System.Collections.Generic.IEnumerable<Popup>
An IEnumerable<T> of all open Popup controls.

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
The return type is IEnumerable, so obviously there is no implied order
I disagree with the first comment about the interface documentation not specifying an order. The interface is IEnumerable - IEnumerable does not guarantee order, the documentation should not imply order. If there is order it shouldn't be IEnumerable.
Missing Specification of the Order that is returned
This documentation lacks any description of the order in which the popup information is returned.  Is it in Z-order from fromtmost to rear-most?  Is it alphabetical by class name?  Random?  If there is a precedence, it shoud be noted.  If there is not, the fact that it is indeterminate shoud be noted. (Please/Thank you)
Only available as of GDR1
It should be noted that this method is only available as of Silverlight 4 GDR1 (i.e. v4.0.50826.0).