Back to Devexpress

Look and Feel

windowsforms-5482-controls-and-libraries-ribbon-bars-and-menu-common-features-look-and-feel.md

latest10.7 KB
Original Source

Look and Feel

  • Jan 10, 2025
  • 4 minutes to read

The ribbon, bars, and menu’s look and feel depends on the skin applied to the application.

To specify the application skin, use the DevExpress Project Settings window:

  • in the Solution Explorer , right-click the project
  • in the context menu, click DevExpress Project Settings
  • use Skin Name to select a skin
  • use Skin Palette to select a color palette (for vector-image-based skins only)

See the following help topic for more information about application settings: Project Settings Page.

Visual Elements and Appearances

Bar and dock controls (ribbons, bars, menus, etc.) consist of multiple visual elements — ribbon pages, application menus, backstage views, etc. The skin specifies each visual element’s appearance settings — background and foreground colors, font face, size and style, etc.

To customize appearance settings for bar and dock controls, you can use controllers. The BarAndDockingController component is a controller that specifies appearance settings for the following controls/components:

Use the following components to access controllers:

  • DefaultBarAndDockingController — a toolbox component that allows you to access the default controller.

  • BarAndDockingController — a controller that you can assign to a specific control/component. You can use this controller to customize appearance settings for the assigned control/component only.

You can specify appearance settings for the following visual elements:

Note

Skins use brushes or images to fill the background. The actual behavior depends on the skin. The background color is not in effect if the skin uses an image to fill the background.

See the following help topic for more information about skins and appearance settings: Application Appearance and Skin Colors.

Individual Visual Elements

You can also specify appearance settings for a particular visual element. For example, the Bar.Appearance property allows you to specify appearance settings for a particular bar.

csharp
using System.Drawing.Drawing2D;

bFile.Appearance.BackColor = Color.Gray;
bFile.Appearance.BackColor2 = Color.White;
bFile.Appearance.GradientMode = LinearGradientMode.Vertical;
bFile.Appearance.Options.UseBackColor = true;
vb
Imports System.Drawing.Drawing2D

bFile.Appearance.BackColor = Color.Gray
bFile.Appearance.BackColor2 = Color.White
bFile.Appearance.GradientMode = LinearGradientMode.Vertical
bFile.Appearance.Options.UseBackColor = True

The table below contains properties that you can use to customize bar and dock controls/components.

|

Bar and Dock Control/Component

|

Property

|

Description

| | --- | --- | --- | |

Bar

|

Bar.Appearance

|

Appearance settings used to paint a specific bar.

These settings override the Bar appearance settings.

| |

BarItem

|

BarItem.ItemAppearance

|

Appearance settings used to paint a specific bar item.

The Font setting overrides the ItemsFont setting.

| |

BarDockControl

|

BarDockControl.Appearance

|

Appearance settings used to paint a bar dock control.

These settings override the Dock appearance settings.

| |

BarSubItem

|

BarCustomContainerItem.MenuAppearance

|

Appearance settings used to paint a specific sub-menu.

These settings override the SubMenu appearance settings.

| |

PopupMenu

|

PopupMenu.MenuAppearance

|

Appearance settings used to paint a specific popup menu.

These settings override the SubMenu appearance settings.

| |

DockPanel

|

DockPanel.Appearance

|

Appearance settings used to paint a specific dock panel’s client region.

These settings override the Panel appearance settings.

| |

XtraTabbedMdiManager

|

XtraTabbedMdiManager.Appearance

|

Appearance settings used to paint an MDI client.

| |

XtraTabbedMdiManager

|

XtraTabbedMdiManager.AppearancePage

|

Appearance settings used to paint pages that belong to the XtraTabbedMdiManager component.

| |

RibbonControl

|

BaseGallery.Appearance

|

Appearance settings used to paint ribbon gallery elements.

| |

AlertControl

|

AlertControl.AppearanceCaption,

AlertControl.AppearanceText,

AlertControl.AppearanceHotTrackedText

|

Appearance settings used to paint an alert window’s contents.

|

Skin Editor

You can also use Skin Editor to customize a specific visual element’s appearance.

Tip

To identify a visual element, hold Ctrl and click it.

See the following help topic for more information on how to create a custom skin and apply it to an application: WinForms Skin Editor.

See Also

Look and Feel

WinForms Skins and Color Palettes