expressappframework-112612-ui-construction-view-items-and-property-editors.md
Dashboard Views and Detail Views consist of View Items - abstract UI entities represented by ViewItem class descendants. To create actual controls, each item type overrides the protected CreateControlCore method, called when an item needs to be displayed in a UI. WinForms-specific View Items are supplied in the DevExpress.ExpressApp.Win assembly.
XAF provides the following basic View Item types:
|
Item Type
|
Description
| | --- | --- | |
|
Displays an Action Container specified by the IModelActionContainerViewItem.ActionContainer property of the Application Model‘s corresponding ActionContainerViewItem node. Used to display Actions on a Detail View layout.
Tutorial : How to: Include an Action to a Detail View Layout
| |
|
Displays a control specified by the IModelControlDetailItem.ControlTypeName property of the Application Model‘s corresponding ControlDetailItem node (see How to: Show a Custom Data-Bound Control in an XAF View (WinForms)). You can specify a control that is displayed in the UI.
| |
DevExpress.ExpressApp.Blazor.Editors.BlazorControlViewItem
|
Displays a control specified by the IModelControlDetailItem.ControlTypeName but can also display any parameter-less Razor component. The Component can access CascadingParameter of the DevExpress.ExpressApp.Blazor.Editors.BlazorControlViewItem type to access the View, ObjectSpace, and Application instances.
| |
|
Displays a View in a nested Frame. Used to display several Views side-by-side on a Dashboard View.
| |
|
Displays an editor control bound to a property. There are multiple property editor types in XAF. They are intended for different data types, and therefore use different controls. For example:
More Property Editors intended for various property types are listed in the Data Types Supported by built-in Editors section.
| |
|
Displays an image.
| |
|
Displays a label.
|
You can use the following approaches to customize View Items:
You can use the following approaches to access or customize View Items:
The Application Model displays nodes for all View Items in your application. You can use the Application Model to customize View Items.
ViewItems node
Views | DashboardView or DetailView | Items node
Views | DashboardView or DetailView | Layout node.
You can use a custom View Item if XAF’s built-in View Items do not meet your requirements. The following articles describe how to create a View Item and use it to implement additional functionality:
Note
You can find built-in View Items from XAF libraries in the Model Editor invoked for a Windows Forms application project, since the DevExpress.ExpressApp.Win assembly is referenced in Windows Forms application projects.
See Also