Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [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]Mask Editors Overview
     [Expand]Formatting and Parsing Values
     [Expand]Editor Buttons Overview
     [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]Examples
   [Expand]Lookup Editors
   [Expand]Token Edit Control
   [Expand]Breadcrumb Edit Control
   [Expand]Range Control
   [Expand]Image Slider
    Camera Control
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

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

How would you rate this topic?​​​​​​​