PresentationSource.CurrentSources Property


Returns a list of sources.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public static IEnumerable CurrentSources {

Property Value

Type: System.Collections.IEnumerable

A list of weak references.

The returned list supports an enumerator over a read-only, thread-safe copy of the list of sources as added with AddSource.

The enumerator skips any dead weak references in the list.


to get sources. Associated enumeration: UIPermissionWindow.AllWindows.

.NET Framework
Available since 3.0
Return to top