Class PropertyChangeNotifier
Notifies when a specified dependency property changes on a target object.
public sealed class PropertyChangeNotifier : DependencyObject, IDisposable
- Inheritance
-
PropertyChangeNotifier
- Implements
- Extension Methods
Constructors
PropertyChangeNotifier(DependencyObject, string)
Initializes a new instance observing the specified path on the given propertySource
.
public PropertyChangeNotifier(DependencyObject propertySource, string path)
Parameters
propertySource
DependencyObjectpath
string
PropertyChangeNotifier(DependencyObject, DependencyProperty)
Initializes a new instance observing the specified dependency property
on the given propertySource
.
public PropertyChangeNotifier(DependencyObject propertySource, DependencyProperty property)
Parameters
propertySource
DependencyObjectproperty
DependencyProperty
PropertyChangeNotifier(DependencyObject, PropertyPath)
Initializes a new instance observing the specified property
path on the given propertySource
.
public PropertyChangeNotifier(DependencyObject propertySource, PropertyPath property)
Parameters
propertySource
DependencyObjectproperty
PropertyPath
Fields
ValueProperty
Identifies the Value dependency property.
public static readonly DependencyProperty ValueProperty
Field Value
Properties
PropertySource
Gets the target object whose property is being observed. May return null if the target has been garbage collected.
public DependencyObject PropertySource { get; }
Property Value
Value
Gets or sets the current value of the observed property.
[Bindable(true)]
public object Value { get; set; }
Property Value
Methods
Dispose()
public void Dispose()
Events
ValueChanged
Occurs when the observed property value changes.
public event Action ValueChanged