This documentation is archived and is not being maintained.

WeakEventManager.Item Property

Gets or sets the data being stored for the specified source.

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

protected Object this[
	Object source
] { get; set; }
You cannot set this property in XAML.

Parameters

source
Type: System.Object

The zero-based index of the requested source.

Property Value

Type: System.Object
Data being stored by the manager for this source.

Derived classes can choose what data and type to store in this indexer. Typically this is implemented as a WeakEventManager.ListenerList, which is a list of weak references to listeners. You would only have to change this type if the WeakEventManager.ListenerList type cannot contain your required information. If so, you will have to override the Purge method so that all cleanup of the underlying type is performed correctly.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: