[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Collapse]Editors and Simple Controls
   [Collapse]Simple Editors
    [Expand]Included Components
    [Expand]Editors Structure
    [Collapse]Editors Features
      Text Editing Overview
     [Expand]Input Mask
     [Expand]Format and Parse Editor Values
     [Expand]Editor Buttons
     [Expand]Dropdown Editors Overview
      Image Editing Menu
     [Expand]Data Binding Overview
     [Collapse]Appearance Customization
       Look And Feel and Skin Support
       Appearance Settings
       Style Controller
       Border and Button Styles
     [Expand]Miscellaneous Features
    [Expand]Member Tables
   [Expand]Lookup Editors
   [Expand]Token Edit Control
   [Expand]Breadcrumb Edit Control
   [Expand]Range Control
   [Expand]Image Slider
    Camera Control
    Templated ListBox Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  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]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Border and Button Styles

Each control provided by the XtraEditors library supports the Look And Feel mechanism which allows you to customize the overall look and feel of the control. The look and feel settings determine the painting scheme applied to the control. By default the look and feel specifies how borders, buttons and dropdowns are painted. This topic shows how to override the default painting styles for these elements.

Expanded Using Border and Button Styles

Controls that aren't available as inplace editors provide a BaseControl.BorderStyle property which specifies the paint style of the border.

Editors derived from the BaseEdit class (which can be used inplace, e.g. within the XtraGrid) provide the following style properties:

Initially, these properties are set to the Default values. In this case an editor's corresponding element is painted using the LookAndFeel settings. If a property is set to any other value the editor's element will be painted using the corresponding scheme and the look and feel settings for this element will be ignored.

The available border and button styles (values that can be assigned to the style properties above) are listed below:

  • Flat - borders and buttons are flat.

  • HotFlat - borders are flat and represented by a single light gray line. Buttons are also flat and highlighted when hot-tracked.

  • NoBorder - no borders are shown. Buttons are flat.

  • Simple - borders are flat and represented by a single dark gray line. Buttons are flat and have a single dark gray line border.

  • Style3D - borders and buttons are painted in the 3D style.

  • UltraFlat - the Office XP style emulation. Borders and buttons are highlighted when hot-tracked or focused. Otherwise, no borders are displayed.

Expanded See Also

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