windowsforms-5482-controls-and-libraries-ribbon-bars-and-menu-common-features-look-and-feel.md
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:
See the following help topic for more information about application settings: Project Settings Page.
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.
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.
using System.Drawing.Drawing2D;
bFile.Appearance.BackColor = Color.Gray;
bFile.Appearance.BackColor2 = Color.White;
bFile.Appearance.GradientMode = LinearGradientMode.Vertical;
bFile.Appearance.Options.UseBackColor = true;
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
| | --- | --- | --- | |
|
|
Appearance settings used to paint a specific bar.
These settings override the Bar appearance settings.
| |
|
|
Appearance settings used to paint a specific bar item.
The Font setting overrides the ItemsFont setting.
| |
|
|
Appearance settings used to paint a bar dock control.
These settings override the Dock appearance settings.
| |
|
BarCustomContainerItem.MenuAppearance
|
Appearance settings used to paint a specific sub-menu.
These settings override the SubMenu appearance settings.
| |
|
|
Appearance settings used to paint a specific popup menu.
These settings override the SubMenu appearance settings.
| |
|
|
Appearance settings used to paint a specific dock panel’s client region.
These settings override the Panel appearance settings.
| |
|
XtraTabbedMdiManager.Appearance
|
Appearance settings used to paint an MDI client.
| |
|
XtraTabbedMdiManager.AppearancePage
|
Appearance settings used to paint pages that belong to the XtraTabbedMdiManager component.
| |
|
|
Appearance settings used to paint ribbon gallery elements.
| |
|
AlertControl.AppearanceCaption,
AlertControl.AppearanceHotTrackedText
|
Appearance settings used to paint an alert window’s contents.
|
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