Class PropertyChangeListener
- Namespace
- NMF.Expressions
- Assembly
- NMF.Expressions.dll
Denotes a listener for property changes
public class PropertyChangeListener : IChangeListener
- Inheritance
-
PropertyChangeListener
- Implements
- Inherited Members
- Extension Methods
Constructors
PropertyChangeListener(INotifiable, string)
Creates a new instance
public PropertyChangeListener(INotifiable node, string propertyName)
Parameters
nodeINotifiableThe target node
propertyNamestringThe property name
Properties
MemberName
The name of the property to listen to
public string MemberName { get; }
Property Value
Node
Gets the target dependency graph node
public INotifiable Node { get; }
Property Value
Methods
AggregateChanges()
Aggregates the changes
public INotificationResult AggregateChanges()
Returns
- INotificationResult
A notification result aggregating the changes since the last propagation
Subscribe(INotifyPropertyChanged)
Subscribe to the property change events
public void Subscribe(INotifyPropertyChanged element)
Parameters
elementINotifyPropertyChangedThe _element
Unsubscribe()
Removes a subscription
public void Unsubscribe()