Class NotifyPropertyChange
Clase base para los objetos que puedan notificar sobre el cambio del valor de una de sus propiedades, tanto antes como después de haber ocurrido dicho cambio.
Inherited Members
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.Mvvm.dll
Syntax
public abstract class NotifyPropertyChange : NotifyPropertyChangeBase, INotifyPropertyChangeBase, IRefreshable, INotifyPropertyChanging, INotifyPropertyChanged
Methods
| Edit this page View SourceOnDoChange<T>(ref T, T, string)
Performs the actual value change on a backing field for a property.
Declaration
protected override void OnDoChange<T>(ref T field, T value, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
T | field | Backing field to be updated. |
T | value | New value to be set onto the backing field. |
string | propertyName | Name of the property. |
Type Parameters
Name | Description |
---|---|
T | Type of the backing field for the property. |
Overrides
| Edit this page View SourceRaisePropertyChangeEvent(in string, in PropertyChangeNotificationType)
Raises the appropriate property change notification event.
Declaration
protected override sealed void RaisePropertyChangeEvent(in string propertyName, in PropertyChangeNotificationType type)
Parameters
Type | Name | Description |
---|---|---|
string | propertyName | Property name for the event to be triggered. |
PropertyChangeNotificationType | type |
Overrides
Events
| Edit this page View SourcePropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |
PropertyChanging
Occurs when a property value is changing.
Declaration
public event PropertyChangingEventHandler? PropertyChanging
Event Type
Type | Description |
---|---|
PropertyChangingEventHandler |