Skip to main content
.NET 6.0+

Enumeration Properties

  • 2 minutes to read

In XAF, a combo box with text entries displays enumeration properties. The EnumDescriptor class gets images and localized item captions for Property Editor. Refer to the following topic for implementation details: How to: Set Images and Captions for Enumeration Values.

Refer to the following topics for more information on enumeration properties related to your ORM:

ASP.NET Core Blazor

In ASP.NET Core Blazor, BlazorPropertyEditorBase.ComponentModel returns an IComponentModel descendant that wraps properties and events of a corresponding ASP.NET Core Blazor Editor.

XAF Enumeration Property ASP.NET Core Blazor, DevExpress

XAF Enumeration Property With Image ASP.NET Core Blazor, DevExpress

Property Editor

IComponentContentHolder descendant

IComponentModel descendant

EnumPropertyEditor

DevExpress.ExpressApp.Blazor.Editors.Adapters.DxComboBoxAdapter<TData, TValue>

DxComboBox<TData, TValue>

Windows Forms

Each Windows Forms Property Editor is available in two forms:

  • A standalone control (displays property value in a Detail View)
  • A repository item (displays property value in a List Editor that supports in-place editing)

XAF Enumeration Properties Windows Forms, DevExpress

Property Editor

Control

Repository Item

Description

EnumPropertyEditor

EnumEdit (an ImageComboBoxEdit descendant).

RepositoryItemEnumEdit (a RepositoryItemButtonEdit descendant).

Used for enumeration type properties. Press Alt + Down Arrow to expand the EnumEdit drop-down window. In this window, you can see items that consist of a caption and an image.

EnumIntPropertyEditor<TEnum>

EnumIntEdit (an ImageComboBoxEdit descendant).

RepositoryItemEnumIntEdit (a RepositoryItemImageComboBox descendant).

Used to display integer properties as enumerations. Refer to the following topic for more information: How to: Display an Integer Property as an Enumeration.

ASP.NET Web Forms

Each ASP.NET Web Forms Property Editor includes controls that display a property in a Detail View in View and Edit mode.

XAF Enumeration Properties ASP.NET Web Forms, DevExpress

Property Editor

Description

ASPxEnumPropertyEditor

Used for enumeration type properties. The View mode uses the System.Web.UI.WebControls.Label class. The Edit mode uses the ASPxComboBox editor for which you can specify images for combo box items. Press Alt + Down Arrow to expand the editor’s drop-down window.

ASPxEnumIntPropertyEditor<TEnum>

The base class for Property Editors used to display integer properties as enumerations. View mode uses the System.Web.UI.WebControls.Label class. Edit mode uses the ASPxComboBox editor. You cannot directly assign this Property Editor in the Model Editor. Refer to the following topic for more information: How to: Display an Integer Property as an Enumeration.

See Also