PropertyChangeNotifier

Ecng.Xaml

Notifies when a specified dependency property changes on a target object.

Inherits: DependencyObject

Implements: IDisposable

Constructors

PropertyChangeNotifier
public PropertyChangeNotifier(DependencyObject propertySource, string path)
propertyChangeNotifier = PropertyChangeNotifier(propertySource, path)

Initializes a new instance observing the specified path on the given .

PropertyChangeNotifier
public PropertyChangeNotifier(DependencyObject propertySource, DependencyProperty property)
propertyChangeNotifier = PropertyChangeNotifier(propertySource, property)

Initializes a new instance observing the specified dependency on the given .

PropertyChangeNotifier
public PropertyChangeNotifier(DependencyObject propertySource, PropertyPath property)
propertyChangeNotifier = PropertyChangeNotifier(propertySource, property)

Initializes a new instance observing the specified path on the given .

Properties

PropertySource
public DependencyObject PropertySource { get; }
value = propertyChangeNotifier.PropertySource

Gets the target object whose property is being observed. May return null if the target has been garbage collected.

Value
public object Value { get; set; }
value = propertyChangeNotifier.Value
propertyChangeNotifier.Value = value

Gets or sets the current value of the observed property.

Methods

Dispose
public void Dispose()
propertyChangeNotifier.Dispose()

Disposes of items in the pool that implement IDisposable.

Events

ValueChanged
public event Action ValueChanged
propertyChangeNotifier.ValueChanged += handler

Occurs when the observed property value changes.

Fields

ValueProperty
public static readonly DependencyProperty ValueProperty
value = PropertyChangeNotifier.ValueProperty

Identifies the Value dependency property.