ClassViewModelBase
Base implementation of the INotifyPropertyChanged interface.
Definition
Namespace:Telerik.Core
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public abstract class ViewModelBase : INotifyPropertyChanged
Inheritance: objectViewModelBase
Derived Classes:
Implements:
Constructors
ViewModelBase()
Declaration
protected ViewModelBase()
Methods
OnPropertyChanged(string)
Raises the PropertyChanged event.
Declaration
protected void OnPropertyChanged(string changedPropertyName = "")
Parameters
changedPropertyName
OnPropertyChanged<T>(Expression<Func<T>>)
Raises this object's PropertyChanged event.
Declaration
protected virtual void OnPropertyChanged<T>(Expression<Func<T>> propertyExpression)
Parameters
propertyExpression
Expression<Func<T>>
A MemberExpression, containing the property that value changed.
Remarks
Use the following syntax: this.OnPropertyChanged(() => this.MyProperty); instead of: this.OnPropertyChanged("MyProperty");.
PropertyChangedOverride(string)
Provides an entry point for inheritors to provide additional logic over the PropertyChanged routine.
Declaration
protected virtual void PropertyChangedOverride(string changedPropertyName)
Parameters
changedPropertyName
VerifyPropertyName(string)
Warns the developer if this object does not have a public property with the specified name. This method does not exist in a Release build.
Declaration
[Conditional("DEBUG")]
protected void VerifyPropertyName(string propertyName)
Parameters
propertyName
Events
PropertyChanged
Occurs immediately after a property of this instance has changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements