Skip to main content

View Models

Base View Models

The DevExpress MVVM Framework includes base classes that you can use to derive your View Models:

BindableBase
A ViewModel that supports the INotifyPropertyChanged interface and allows you to use GetProperty and SetProperty methods to implement bindable properties.
ViewModelBase
The BindableBase descendant that implements the ISupportUIServices interface and allows you to access UI Services registered within a View.

Generated View Models

The MVVM Framework allows you to produce boilerplate code for your View Models, so that you do not need to implement each command or property. Refer to the following WPF topic for more information: View Models Generated at Compile Time. You can use this technique in WinUI projects. Consider the differences:

  • The ImplementIDataErrorInfo property is not supported.
  • The UseCommandManager property is not supported.