KGy SOFT

PropertyChangedExtendedEventArgs Class

KGy SOFT Core Libraries Help
Represents a PropertyChangedEventArgs with property value. The actual type of the event argument of the ObservableObjectBase.PropertyChanged event is PropertyChangedExtendedEventArgs.
Inheritance Hierarchy

SystemObject
  SystemEventArgs
    System.ComponentModelPropertyChangedEventArgs
      KGySoft.ComponentModelPropertyChangedExtendedEventArgs

Namespace:  KGySoft.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.4.0
Syntax

public class PropertyChangedExtendedEventArgs : PropertyChangedEventArgs

The PropertyChangedExtendedEventArgs type exposes the following members.

Constructors

  NameDescription
Public methodPropertyChangedExtendedEventArgs
Initializes a new instance of the PropertyChangedExtendedEventArgs class.
Top
Properties

  NameDescription
Public propertyNewValue
Gets the property value after the change or MissingProperty if the property has just been reset and there is no stored value for it.
Public propertyOldValue
Gets the property value before the change or MissingProperty if no previous value was stored for the property before the change.
Top
Extension Methods

  NameDescription
Public Extension MethodConvert(Type, CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
(Defined by ObjectExtensions.)
Public Extension MethodCode exampleConvertTTarget(CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)
Public Extension MethodIn (Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, CultureInfo, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(TTarget)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(CultureInfo, TTarget)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions.)
Public Extension MethodTryGetNewPropertyValue
If the specified event args is a PropertyChangedExtendedEventArgs instance, then gets the property value after the change.
(Defined by PropertyChangedEventArgsExtensions.)
Public Extension MethodTryGetOldPropertyValue
If the specified event args is a PropertyChangedExtendedEventArgs instance, then gets the property value before the change.
(Defined by PropertyChangedEventArgsExtensions.)
Top
Remarks

Note Note
The ObservableObjectBase.PropertyChanged event uses the PropertyChangedEventHandler delegate in order to consumers, which rely on the conventional property changed notifications can use it in a compatible way. To get the old value in an event handler you can cast the argument to PropertyChangedExtendedEventArgs or call the TryGetOldPropertyValue extension method on it.
See Also

Reference