Log In
[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Expand]Controls and Libraries
 [Collapse]Common Features
  [Expand]Data Binding Common Concepts
  [Expand]Data Source Wizard
    File and Folder Browser Behaviors
    Persistence Behavior
    Indicator Behaviors
    Stub Glyph Behavior
    Banner Behavior
    Drag And Drop Behavior
    Magnifier Behavior
    Pager Navigation Behavior
    Snap Window Behavior
  [Expand]Application Appearance
  [Expand]Filtering UI Context
  [Expand]High DPI Support
  [Expand]Scaffolding Wizard
  [Expand]Formatting Values
   HTML Text Formatting
  [Expand]Tooltip Management
  [Expand]Saving and Restoring 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]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation


Attach a Behavior to target controls and components to template them in a specific manner. For instance, a Clock Behavior turns a LabelControl or a digital gauge into a clock.

Target controls do not necessarily have common ancestors, so Behaviors are implemented as standalone objects.

Expanded Attach a Behavior to a Control

Open the Visual Studio's Toolbox window, locate the Behavior Manager component and drop it onto the form. Invoke the component smart tag and click "Edit Behaviors".

Once you click the link, the Collection Editor dialog pops up. You can create new Behaviors and attach them to controls by setting their Target properties using this dialog.

Most controls that support Behaviors display the "Add Behaviors..." link within their smart tags. Clicking this link automatically adds the Behavior Manager component and opens its Collection Editor dialog. However, you can create and modify Behaviors assigned to this control only.

Behaviors can also be attached in code using the Behavior Manager's Attach method and utilizing lambda expressions to set the required Behavior options.

Expanded Available Behaviors

The table below enumerates all supported Behaviors and controls to which Behaviors you can attach them. You can also submit Support Center tickets to request new Behaviors.

Behavior Name


Target Controls

FileIconBehavior Checks the display text of the target control and if this text is a path to an existing file or folder, adds its icon to the control. TextEdit
FilePathBehavior Same as FileIconBehavior. Additionally, if the target control allows end-users to edit display text at runtime, it also provides the auto-complete feature. TextEdit
Attach these behaviors to a ButtonEdit control to instantly transform it into an editor that allows end-users to choose a file or a folder from the local storage. The editor displays an icon and a caption of the selected file (folder). ButtonEdit
PersistenceBehavior This behavior can be attached to a form to restore its last known position and size at runtime. XtraForm
Ribbon Form
Tabbed Form
controls that implement the ISupportXtraSerializer interface
SnapWindowBehavior Turns standard and DevExpress forms into sticky windows that can snap to other windows and screen edges. XtraForm
Ribbon Form
Tabbed Form
standard forms and their descendants
StubGlyphBehavior With this behavior attached, items that have no custom icons display temporary fake images. GridColumn
ClockBehavior A control with this behavior displays current system's date and time. The behavior provides the ability to customize both date and time data portions separately. LabelControl
KeyboardIndicatorBehavior Indicates whether or not the specific system key (Caps Lock, Num Lock, Scroll Lock) is currently pressed. LabelControl
BannerBehavior Forces a PictureEdit control to cycle through a collection of images instead of constantly displaying the same one. PictureEdit
DragAndDropBehavior Adds support for drag-and-drop operations between controls. ListBoxControl
GridControl (GridView)
Magnifier Behavior Allows users to pick colors from the screen using the Magnifier tool. All ColorEdit descendants
Pager Navigation Behavior Allows you to provide pager navigation for contents of certain controls. The pager control can be a RadioGroup or WindowsUIButtonPanel. TileControl

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