[]
        
(Showing Draft Content)

C1.LiveLinq.Listeners.PropertyChangeListener-1

PropertyChangeListener<T> Class

Represents a listener object used by LiveLinq to receive notifications of changes to property values in a collection element object.

Inheritance
PropertyChangeListener<T>
Namespace: C1.LiveLinq.Listeners
Assembly: C1.LiveLinq.4.8.dll
Syntax
public abstract class PropertyChangeListener<T> : INotifyPropertyChanged
Type Parameters
Name Description
T

The type of the elements in the collection.

Remarks

In most cases, the default listener mechanism performs its function and does not need user intervention. As an advanced functionality, LiveLinq allows the user to customize default listeners. It may be needed in those rare cases when you use IndexedCollection<T> with element class T that does not provide property change notifications, and you can't add such notifications, nor by deriving the class from IndexableObject nor by other means, but you have some other way of knowing when property changes occur (maybe you can listen to some events, for example).

Then you can define your own class derived from the base class PropertyChangeListener<T> and pass an object of that class to the IndexedCollection<T> constructor.

Constructors

Name Description
PropertyChangeListener()

Methods

Name Description
Clear()

Stop listening to all, don't listen to any objects.

CreateDefault()

Creates the default listener used by LiveLinq to listen to property change notifications in objects of type T.

GetListeningProperties()

Gets the list of property names for which change notifications are supported.

StartListening(T)

Start listening to property changes in a particular object.

StopListening(T)

Stop listening to property changes in a particular object.

Events

Name Description
PropertyChanged

Occurs after a property has changed its value.

Extension Methods