Class NotifiableObject
- Namespace
- Ecng.ComponentModel
- Assembly
- Ecng.ComponentModel.dll
Provides base functionality for notifying property changes to registered observers. Implements both INotifyPropertyChangedEx and INotifyPropertyChanging.
[DataContract]
public abstract class NotifiableObject : INotifyPropertyChangedEx, INotifyPropertyChanged, INotifyPropertyChanging
- Inheritance
-
NotifiableObject
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
NotifiableObject()
protected NotifiableObject()
Methods
NotifyChanged(string)
Invokes the property change notification.
protected void NotifyChanged(string propertyName = null)
Parameters
propertyNamestringThe name of the property that changed. This value is optional and can be provided automatically by the compiler.
NotifyChanging(string)
Raises the PropertyChanging event.
protected void NotifyChanging(string propertyName = null)
Parameters
propertyNamestringThe name of the property that is changing. This value is optional and can be provided automatically by the compiler.
NotifyPropertyChanged(string)
Raises the PropertyChanged event.
public void NotifyPropertyChanged(string propertyName = null)
Parameters
propertyNamestringThe name of the property that changed. This value is optional and can be provided automatically by the compiler.
Events
PropertyChanged
Occurs when a property value has changed.
public event PropertyChangedEventHandler PropertyChanged
Event Type
PropertyChanging
Occurs when a property value is changing.
public event PropertyChangingEventHandler PropertyChanging