Class NotifyPropertyChanged
Base class for any object that can generate notifications and events when the value of a property has changed.
Inherited Members
Namespace: TheXDS.MCART.Types.Base
Assembly: MCART.Mvvm.dll
Syntax
public abstract class NotifyPropertyChanged : NotifyPropertyChangeBase, INotifyPropertyChangeBase, IRefreshable, INotifyPropertyChanged
Methods
| Edit this page View SourceNotify(string)
Manually raises a PropertyChanged event for a single property.
Declaration
protected void Notify(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
string | propertyName | Name of the property that changed its value. |
Notify(params string[])
Manually raises a PropertyChanged event for a set of properties.
Declaration
protected void Notify(params string[] propertyNames)
Parameters
Type | Name | Description |
---|---|---|
string[] | propertyNames | Name of the properties that changed their value. |
OnDoChange<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 SourcePropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler? PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |