ClassViewModelBase
Base class for all ViewModel classes. It provides support for property change notifications and has a DisplayName property. This class is abstract.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.WinControls.PivotGrid.dll
Syntax:
public abstract class ViewModelBase : INotifyPropertyChanged, IDisposable
Inheritance: objectViewModelBase
Derived Classes:
Implements:
Constructors
ViewModelBase()
Initializes a new instance of the ViewModelBase class.
Declaration
protected ViewModelBase()
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
disposing
true to release both managed and unmanaged resources.
false to release only unmanaged resources.
OnPropertyChanged(string)
Raises this object's PropertyChanged event.
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
The property that has a new value.
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
Raised when a property on this object has a new value.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements