SpreadsheetControl.CommandBarStyle Property

Gets or sets the command bar for the SpreadsheetControl. This is a dependency property.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v21.2.dll


public CommandBarStyle CommandBarStyle { get; set; }

Property Value

Type Description

A CommandBarStyle enumeration value.

Available values:

Name Description

The SpreadsheetControl does not display an integrated ribbon.


The SpreadsheetControl displays an integrated ribbon.


Use the CommandBarStyle property to show or hide the integrated ribbon UI for the SpreadsheetControl. When you create a new WPF Spreadsheet application, it displays the integrated ribbon with all the available spreadsheet ribbon pages by default. You can customize the integrated ribbon by adding new ribbon elements, modifying or removing the existing items. For an example, refer to the Customize the Integrated Ribbon UI for the Spreadsheet tutorial.

If you do not require the integrated ribbon, remove it by setting the CommandBarStyle property to CommandBarStyle.Empty.


The SpreadsheetControl.Ribbon property does not return the ribbon menu specified by the CommandBarStyle property.

See Also