Template Gallery
- 3 minutes to read
In addition to the Solution Wizard, XAF provides a number of Visual Studio project item templates available from the DevExpress Template Gallery. These project items are listed in this topic.
To open the Template Gallery, right click a project in the Solution Explorer and choose Add DevExpress Item | New Item….
XAF project item templates are available in the XAF category.
The table below lists XAF project item templates and their descriptions.
XAF Business Objects
XPO Business Object
Description: An XPO persistent class that inherits BaseObject, defines a business model and, consequently, the database structure and CRUD user interface.
Target ORM: XPO.
See also:
- Business Classes vs Database Tables
- Inherit from the Business Class Library Class (XPO)
- Implement Custom Business Classes and Reference Properties (XPO)
XPO Data Model Wizard
Description: Creates a designable data model mapped to an existing or newly created database. Created models include XPO classes and metadata.
Target ORM: XPO.
See also:
EF Business Object
Description: An Entity Framework Code First class that defines a business model and, consequently, the database structure and CRUD user interface. Unlike a regular Code First class, it supports interfaces that allow you to embed complex business logic in this class. This template does not patch the DbContext code, so do not forget to register the created class manually within the context.
Target ORM: EF.
See also:
Non-Persistent Object
Description: A class which is added to an XAF Application Model and participates in a UI generation, but not bound to a database table (non-persistent object).
Target ORMs: EF, XPO.
See also:
- How to: Display a List of Non-Persistent Objects in a Popup Dialog
- How to: Display a Non-Persistent Object’s Detail View from the Navigation
- How to: Display a Non-Persistent Object’s List View from the Navigation
- How to: Display Non-Persistent Objects in a Report
- How to: Perform CRUD Operations with Non-Persistent Objects
- How to: Show Persistent Objects in a Non-Persistent Object’s View
- PropertyChanged Event in Business Classes
Report Parameters Object
Description: The non-persistent class that declares report parameters in Reports V2 Module.
Target ORMs: EF, XPO.
See also:
XAF Controllers
View Controller
Description: A component that inherits ViewController and implements a custom functionality for XAF Views.
Target ORMs: EF, XPO.
See also:
Window Controller
Description: A component that inherits WindowController and implements a custom functionality for XAF Windows.
Target ORMs: EF, XPO.
See also:
XAF WinForms Templates
Description: Project item templates for WinForms Templates customizations.
Target ORMs: EF, XPO.
Templates:
- Light Style Main Form Template
- Light Style Main Ribbon Form Template
- Outlook Style Main Ribbon Form Template
- Detail Form Template
- Detail Ribbon Form Template
- Popup Form Template
- Nested Frame Template
- Lookup Control Template
- Lookup Form Template
See also:
- Templates
- Template Customization
- How to: Create a Custom WinForms Ribbon Template
- How to: Create a Custom WinForms Standard Template
XAF ASP.NET Templates
Description: Project item templates for ASP.NET Templates customizations.
Target ORMs: EF, XPO.
Templates:
- Default Vertical Template Content
- Dialog Template Content
- Find Dialog Template Content
- Logon Template Content
- Nested Frame Control
See also:
Deprecated Templates
WinForms Templates
- Main Form Template
- Main Ribbon Form Template
ASP.NET Classic UI Templates
- Default Template
- Default Vertical Template
- Dialog Template
- Logon Template
- Nested Frame Control