Skip to main content

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 the 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

Component Model

Component

EnumPropertyEditor

DevExpress.ExpressApp.Blazor.Components.Models.DxComboBoxModel<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.

See Also