PropertyChangeNotifier Class

CVB.Net Documentation
Helper to not root (keep alive) the target object if registering on value change events.
Inheritance Hierarchy

SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      Stemmer.Cvb.WpfPropertyChangeNotifier

Namespace:  Stemmer.Cvb.Wpf
Assembly:  Stemmer.Cvb.Wpf (in Stemmer.Cvb.Wpf.dll) Version: 14.0.0.0
Syntax

public sealed class PropertyChangeNotifier : DependencyObject, 
	IDisposable

The PropertyChangeNotifier type exposes the following members.

Constructors

  NameDescription
Public methodPropertyChangeNotifier(DependencyObject, String)
Creates the notifier from the given propertySource and its property path.
Public methodPropertyChangeNotifier(DependencyObject, DependencyProperty)
Creates the notifier from the given propertySource and its property.
Public methodPropertyChangeNotifier(DependencyObject, PropertyPath)
Creates the notifier from the given propertySource and its property path.
Top
Properties

  NameDescription
Public propertyDependencyObjectType
Gets the DependencyObjectType that wraps the CLR type of this instance. 
(Inherited from DependencyObject.)
Public propertyDispatcher
Gets the Dispatcher this DispatcherObject is associated with.
(Inherited from DispatcherObject.)
Public propertyIsSealed
Gets a value that indicates whether this instance is currently sealed (read-only).
(Inherited from DependencyObject.)
Public propertyPropertySource
Gets the property source object or null if it doesn't exist.
Public propertyValue
Returns/sets the value of the property.
Top
Methods

  NameDescription
Public methodCheckAccess
Determines whether the calling thread has access to this DispatcherObject.
(Inherited from DispatcherObject.)
Public methodClearValue(DependencyProperty)
Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier.
(Inherited from DependencyObject.)
Public methodClearValue(DependencyPropertyKey)
Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey.
(Inherited from DependencyObject.)
Public methodCoerceValue
Coerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject.
(Inherited from DependencyObject.)
Public methodDispose
Clears the binding.
Public methodEquals
Determines whether a provided DependencyObject is equivalent to the current DependencyObject.
(Inherited from DependencyObject.)
Protected methodFinalize
Finalizer.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Gets a hash code for this DependencyObject.
(Inherited from DependencyObject.)
Public methodGetLocalValueEnumerator
Creates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject.
(Inherited from DependencyObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue
Returns the current effective value of a dependency property on this instance of a DependencyObject.
(Inherited from DependencyObject.)
Public methodInvalidateProperty
Re-evaluates the effective value for the specified dependency property
(Inherited from DependencyObject.)
Public methodReadLocalValue
Returns the local value of a dependency property, if it exists.
(Inherited from DependencyObject.)
Public methodSetCurrentValue
Sets the value of a dependency property without changing its value source.
(Inherited from DependencyObject.)
Public methodSetValue(DependencyProperty, Object)
Sets the local value of a dependency property, specified by its dependency property identifier.
(Inherited from DependencyObject.)
Public methodSetValue(DependencyPropertyKey, Object)
Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property.
(Inherited from DependencyObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVerifyAccess
Enforces that the calling thread has access to this DispatcherObject.
(Inherited from DispatcherObject.)
Top
Events

  NameDescription
Public eventValueChanged
The event to notify on registered property value change.
Top
Fields

  NameDescription
Public fieldStatic memberValueProperty
Identifies the Value dependency property.
Top
Extension Methods

  NameDescription
Public Extension MethodFindVisualParentT
Finds a parent of a certain type of a this item in the visual tree.
(Defined by VisualTreeHelperExtensions.)
Top
Remarks

Code is based on https://agsmith.wordpress.com/2008/04/07/propertydescriptor-addvaluechanged-alternative/.
See Also

Reference