Templates
To simplify MVVM application development, DevExpress offers several MVVM-specific Template Gallery templates, available from the ‘Add DevExpress Item’ menu.
The table below lists all MVVM-related templates included in this gallery.
Template Name | Template Description |
---|---|
View & View Model | The entry point for each new application module. Creates a blank View related to the new blank ViewModel |
Blank View Model | An empty ViewModel that implements the INotifyPropertyChanged interface and supports declaring bindable properties. You can choose the type of the created ViewModel (either a POCO or regular model). |
Business Object View Model | Launches the wizard that generates a ViewModel to perform CRUD (create, read, update, delete) operations on a single business object. The created ViewModel supports message broadcasting using the DevExpress Messenger. |
Collection View Model | Similar to the previous template, this template launches the wizard to generate a ViewModel that works with an entire collection of business objects. Message broadcasting is also supported. |
Data Model Scaffolding | Two previous templates joined together. Creates ViewModels for both the entire objects’ collection and a single entity. The example of working with the Scaffolding Wizard is illustrated in the first lesson of the Tutorials section. |