[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Expand]Controls and Libraries
 [Collapse]Common Features
  [Expand]Data Binding Common Concepts
  [Expand]Data Source Wizard
  [Expand]Expressions
  [Collapse]Behaviors
    File and Folder Browser Behaviors
    Persistence Behavior
    Indicator Behaviors
    Stub Glyph Behavior
    Banner Behavior
    Breadcrumb Behavior
    Drag-and-Drop Behavior
    Magnifier Behavior
    Pager Navigation Behavior
    Scrollbar Annotation Behavior
    Snap Window Behavior
  [Expand]Application Appearance and Skin Colors
  [Expand]Filtering UI Context
   Find Panel Syntax
  [Expand]Graphics Performance and High DPI
  [Expand]Scaffolding Wizard
  [Expand]Formatting Values
   HTML-inspired Text Formatting
  [Expand]Menus
  [Expand]Tooltip Management
  [Expand]Save and Restore Layouts
   Clipboard - Copy and Paste Operations. Data Formatting
   Version Compatibility: Default Property Values
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Behaviors

A Behavior is an appearance and\or functionality preset for controls. For instance, you can use the Clock Behavior to turn a LabelControl or a digital gauge into a clock.

You can submit Support Center tickets to request new Behaviors.

Expanded Attach a Behavior to a Control

Open Visual Studio's Toolbox and drag-and-drop the Behavior Manager component onto the form. Click the component’s smart tag and select "Edit Behaviors" to invoke the Collection Editor dialog.

This dialog allows you to create new Behaviors, and use their Target properties to assign them to controls.

You can use the "Add Behaviors..." link in a control’s smart tag menu to add the Behavior Manager component and open its Collection Editor dialog.

To attach Behaviors in code, call the Behavior Manager's Attach method and use lambda expressions to set the Behavior's options.

Expanded Available Behaviors

The table below lists all the DevExpress Behaviors and the controls that support them.

Behavior Name

Description

Target Controls

FileIconBehavior

This Behavior adds a file/folder icon to a control if this control displays a path to an existing file or folder.

TextEdit

ButtonEdit

LabelControl

FilePathBehavior

Operates similarly to the FileIconBehavior, and additionally provides auto-complete hints.

TextEdit

ButtonEdit

OpenFileBehavior

OpenFolderBehavior

These Behaviors add ellipsis buttons to the ButtonEdit editor. Users can click these buttons to invoke file/folder browser dialogs. The editor displays an icon and a caption of the selected file/folder.

ButtonEdit

PersistenceBehavior

If you close and re-open a form with this Behavior attached, the form restores its last known position and size.

XtraForm

Ribbon Form

Tabbed Form

controls that implement the ISupportXtraSerializer interface

SnapWindowBehavior

Allows standard and DevExpress forms to snap to other windows and screen edges.

XtraForm

Ribbon Form

Tabbed Form

standard forms and their descendants

StubGlyphBehavior

Provides automatically generated icons for the target control or its child elements.

GridColumn

ImageComboBoxEdit

LayoutControlGroup

LayoutControlItem

XtraTabPage

TreeListColumn

ImageListBoxControl

ClockBehavior

Turns a control into a clock that displays the system's date and time.

LabelControl

BarStaticItem

DigitalGauge

KeyboardIndicatorBehavior

Indicates whether system keys (Caps Lock, Num Lock, Scroll Lock) are pressed.

LabelControl

BarStaticItem

BannerBehavior

This Behavior allows a Picture Edit to automatically cycle through a collection of images.

PictureEdit

DragAndDropBehavior

Allows users to drag-and-drop items between controls.

ListBoxControl

GridControl (GridView)

TreeList

Magnifier Behavior

Allows users to invoke the Magnifier tool and pick colors on their screen.

All ColorEdit descendants

Pager Navigation Behavior

Allows you use a RadioGroup or WindowsUIButtonPanel to browse the target control’s child items (tiles, slide images, etc.).

TileControl

TileBar

NavigationFrame

ImageSlider

Breadcrumb Behavior

Allows you to implement a breadcrumb navigation through a TreeList's hierarchy using a BreadCrumbEdit control.

TreeList, BreadCrumbEdit

Is this topic helpful?​​​​​​​