Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

WeakEventManager.Item Property

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

Namespace: System.Windows
Assembly: WindowsBase (in windowsbase.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

protected Object this [
	Object source
] { get; set; }
/** @property */
protected Object get_Item (Object source)

/** @property */
protected void set_Item (Object source, Object value)

You cannot use this property in XAML.

Parameters

source

The zero based index of the requested source.

Property Value

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 need to change this type if the WeakEventManager.ListenerList type cannot contain your required information. If so, you will need to override Purge such that all cleanup of the underlying type is performed correctly.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft. All rights reserved.