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.v20.1.dll

Declaration

public CommandBarStyle CommandBarStyle { get; set; }
Public Property CommandBarStyle As CommandBarStyle

Property Value

Type Description
CommandBarStyle

A CommandBarStyle enumeration value.

Remarks

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 Lesson 4 - 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.

NOTE

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

See Also