Class NotifyPropertyChanging
Base class for any object that can generate notifications and events when the value of a property will change.
Inherited Members
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.Mvvm.dll
Syntax
public abstract class NotifyPropertyChanging : NotifyPropertyChangeBase, INotifyPropertyChangeBase, IRefreshable, INotifyPropertyChanging
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 _)
Parameters
Type | Name | Description |
---|---|---|
string | propertyName | Property name for the event to be triggered. |
PropertyChangeNotificationType | _ |
Overrides
Events
| Edit this page View SourcePropertyChanging
Occurs when a property value is changing.
Declaration
public event PropertyChangingEventHandler? PropertyChanging
Event Type
Type | Description |
---|---|
PropertyChangingEventHandler |