New to Telerik UI for WinFormsStart a free 30-day trial

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.WinForms.Controls.Spreadsheet.Controls

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public abstract class ViewModelBase : INotifyPropertyChanged, IDisposable

Inheritance: objectViewModelBase

Derived Classes: ChartControlViewModelChartTypeViewModelMarkerInfoOutlineInfoSeriesViewModelNoteControlViewModel...

Implements: IDisposableINotifyPropertyChanged

Constructors

Initializes a new instance of the ViewModelBase class.

C#
protected ViewModelBase()

Methods

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Releases unmanaged and - optionally - managed resources.

C#
protected virtual void Dispose(bool disposing)
Parameters:disposingbool

true to release both managed and unmanaged resources. false to release only unmanaged resources.

Raises this object's PropertyChanged event.

C#
protected virtual void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

The property that has a new value.

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.

C#
[Conditional("DEBUG")]
protected void VerifyPropertyName(string propertyName)
Parameters:propertyNamestring

Events

Raised when a property on this object has a new value.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged