Skip to main content
.NET 6.0+

Boolean Properties

  • 2 minutes to read

In XAF, the following controls can display Boolean and Nullable Boolean properties:

Refer to the following topics for more ORM-specific information on Boolean properties:

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 Boolean Property ASP.NET Core Blazor, DevExpress

XAF Boolean Property With Captions ASP.NET Core Blazor, DevExpress

XAF Boolean Property With Images ASP.NET Core Blazor, DevExpress

The table below lists the corresponding descendants for BooleanPropertyEditor:

IComponentContentHolder descendant

Component

Description

DevExpress.ExpressApp.Blazor.Editors.Adapters.DxCheckBoxAdapter<T>

DxCheckBox<T>

The default control.

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

DxComboBox<TData, TValue>

This component is used when one of the following property pairs is specified:

WinForms

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 Boolean Properties WinForms

The following table shows available controls and repository items for BooleanPropertyEditor:

Control

Repository item

Description

BooleanEdit (a CheckEdit descendant).

RepositoryItemBooleanEdit (a RepositoryItemCheckEdit descendant).

A CheckEdit control (default).

BoolComboBoxEdit (an ImageComboBoxEdit descendant).

RepositoryItemBoolComboBoxEdit (a RepositoryItemImageComboBox descendant).

A drop-down control with custom text. An optional image is displayed next to the text when one of the following property pairs is specified:

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 Boolean Properties Web Forms

The following table shows available controls and repository items for ASPxBooleanPropertyEditor:

View mode control

Edit mode controls

Description

ASPxCheckBox

ASPxCheckBox

The default control.

ASPxImageLabelControl

ASPxComboBox

These controls are used when one of the following property pairs is specified: