Back to Devexpress

View Items and Property Editors

expressappframework-112612-ui-construction-view-items-and-property-editors.md

latest9.8 KB
Original Source

View Items and Property Editors

  • Mar 03, 2026
  • 6 minutes to read

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

| | --- | --- | |

ActionContainerViewItem

|

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

| |

ControlViewItem

|

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.

| |

DashboardViewItem

|

Displays a View in a nested Frame. Used to display several Views side-by-side on a Dashboard View.

| |

PropertyEditor

|

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.

| |

StaticImage

|

Displays an image.

| |

StaticText

|

Displays a label.

|

Customize View Items

You can use the following approaches to customize View Items:

Access and Customize View Items in Code

You can use the following approaches to access or customize View Items:

Customize the Application Model

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.

Create Custom View Items

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

List Editors

How to: Include a Custom UI Control That Is Not Integrated by Default (WinForms and ASP.NET Core Blazor)

Ways to Access UI Elements and Their Controls