Helper to not root (keep alive) the target object if registering on value change events.
More...
Inherits DependencyObject, and IDisposable.
|
| PropertyChangeNotifier (DependencyObject propertySource, string path) |
| Creates the notifier from the given propertySource and its property path . More...
|
|
| PropertyChangeNotifier (DependencyObject propertySource, DependencyProperty property) |
| Creates the notifier from the given propertySource and its property . More...
|
|
| PropertyChangeNotifier (DependencyObject propertySource, PropertyPath property) |
| Creates the notifier from the given propertySource and its property path. More...
|
|
void | Dispose () |
| Clears the binding.
|
|
|
static readonly DependencyProperty | ValueProperty |
| Identifies the Value dependency property.
|
|
|
DependencyObject | PropertySource [get] |
| Gets the property source object or null if it doesn't exist.
|
|
object | Value [get, set] |
| Returns/sets the value of the property. More...
|
|
Helper to not root (keep alive) the target object if registering on value change events.
Code is based on https://agsmith.wordpress.com/2008/04/07/propertydescriptor-addvaluechanged-alternative/.
◆ PropertyChangeNotifier() [1/3]
Creates the notifier from the given propertySource and its property path .
- Parameters
-
propertySource | Object to register event on. |
path | Path to the property to get notified on. |
◆ PropertyChangeNotifier() [2/3]
Creates the notifier from the given propertySource and its property .
- Parameters
-
propertySource | Object to register event on. |
property | Property to get notified on. |
◆ PropertyChangeNotifier() [3/3]
Creates the notifier from the given propertySource and its property path.
- Parameters
-
propertySource | Object to register event on. |
property | Property path to get notified on. |
◆ Value
◆ ValueChanged
The event to notify on registered property value change.
The sender is this object.