Base class that provides property change notification mechanism. Implements INotifyPropertyChanged interface.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public abstract class NotifyPropertyChangedBase : INotifyPropertyChanged
Inheritance: objectNotifyPropertyChangedBase
Derived Classes:
Implements:
Constructors
protected NotifyPropertyChangedBase()
Methods
Raises the PropertyChanged event.
protected virtual void OnPropertyChanged(string propertyName = null)
The name of the property that has changed. If null, the caller member name is used.
Updates a field's value, executes a callback with the old value, and raises the PropertyChanged event if the value has changed.
protected bool UpdateValue<T>(ref T field, T value, Action<T> onChanged, string propertyName = null)
A reference to the field to update.
valueTThe new value for the field.
onChangedAction<T>Action to invoke after the field value is changed, with the old value as parameter.
propertyNamestringThe name of the property that is changing. If null, the caller member name is used.
Returns:true if the value was changed, false otherwise.
Updates a field's value and raises the PropertyChanged event if the value has changed.
protected bool UpdateValue<T>(ref T field, T value, string propertyName = null)
A reference to the field to update.
valueTThe new value for the field.
propertyNamestringThe name of the property that is changing. If null, the caller member name is used.
Returns:true if the value was changed, false otherwise.
Events
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Implements: