All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

RepositoryItemTextEdit.UseAdvancedMode Property

Switches the editor to Advanced Mode. This mode supports new caret and selection animations, emojis, and embedded labels. You can set up properties from the RepositoryItemTextEdit.AdvancedModeOptions group to choose which Advanced Mode features are enabled. To activate Advanced Mode for all TextEdit-based editors in your app, enable the static WindowsFormsSettings.UseAdvancedTextEdit property.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v21.1.dll

Declaration

[DXCategory("Appearance")]
[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean UseAdvancedMode { get; set; }

Property Value

Type Default Description
DefaultBoolean

Default

Specifies whether Advanced Mode is on. The Default value is identical to False.

Available values:

Name Description
True

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The default behavior determined by the control’s logic.

Remarks

Important

This functionality is available in v21.1 as a community technology preview (CTP).

Advanced Mode is supported for all TextEdit-based editors, except for TokenEdit, RepositoryItemHypertextLabel and HyperLinkEdit controls. This mode turns on the following features:

Caret and Selection Animations

The redesigned control painter implements more responsive and smooth animations.

advanced mode animations

To disable these effects, use the AdvancedModeOptions.AllowCaretAnimation and AdvancedModeOptions.AllowSelectionAnimation properties.

Themed Selection Color

The selection color depends on the current application skin.

themed selection colors

Embedded Labels

Set the AdvancedModeOptions.Label property to display an editor caption inside the text box. This caption moves upwards when the editor is focused.

embedded labels

Note that in order to accommodate both an embedded label and a regular editor value, the editor increases its height.

Emoji Support

Users can press “Win+.” to enter emoji from the Windows library. If the AdvancedModeOptions.UseDirectXPaint property is disabled, emoji are desaturated.

emojis

Custom Text Highlight and Painting

You can handle the TextEdit.CustomHighlightText (or RepositoryItemTextEdit.CustomHighlightText) event to highlight or paint certain strings within the control’s text in a custom manner:

  • Highlight strings with custom foreground and background colors.
  • Add padding for text blocks.
  • Specify a painter that draws text using a custom font.
  • Specify a painter that replaces strings with custom graphics (e.g., icons or smileys).

CustomHighlightText - example

Run Demo: Memo Edit

See Also