Back to Devexpress

RibbonControl.RibbonStyle Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-e19809d1.md

latest5.3 KB
Original Source

RibbonControl.RibbonStyle Property

Gets or sets the style of the RibbonControl.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(RibbonControlStyle.Default)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public RibbonControlStyle RibbonStyle { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(RibbonControlStyle.Default)>
<XtraSerializableProperty>
Public Property RibbonStyle As RibbonControlStyle

Property Value

TypeDefaultDescription
RibbonControlStyleDefault

A RibbonControlStyle enumeration value that specifies the paint style.

|

Available values:

NameDescription
Default

The same as the RibbonControlStyle.Office2013 option. See Version Compatibility: Default Property Values.

| | Office2007 |

The Office2007 style. The following image shows this style with the Office 2007 Blue skin:

| | Office2010 |

The Office2010 style. The following image shows this style with the Office 2010 Blue skin:

| | Office2013 |

Emulates the Microsoft Office 2013 UI and its behavior, which includes a modified BackstageViewControl, a Full-Screen Mode button, and touch-input device mode support. The following image shows this style with the Office 2013 skin:

| | MacOffice |

The MacOffice style. The following image shows this style with the Office 2010 Blue skin:

To display the Application Button in the MacOffice style, ensure that the RibbonControl.ShowApplicationButton property is set to True.

| | TabletOffice |

The Ribbon style inspired by the UI found in Microsoft Office for iPad. The following image shows this style with the Office 2013 skin:

| | TabletOfficeEx |

Obsolete. This value is obsolete, use the OfficeUniversal style instead.

| | OfficeUniversal |

The Ribbon style inspired by the Ribbon UI introduced in Microsoft “Office Universal” apps. The following image shows this style with the Office 2013 skin:

| | Office2019 |

The Office 2019-inspired style. It features a flat appearance, tab animations (when the “Office 2019 Colorful”, “Office 2019 Black”, “Office 2019 White”, or “Office 2019 Dark Gray” vector skin is applied), and the capability to collapse into a single-row (the “Simplified” state). The following image shows this style with the Office 2019 Colorful skin:

| | Office365 |

The Office 365 style. The following image shows this style with the WXI skin:

|

Remarks

The RibbonStyle property affects how the RibbonControl’s elements are painted.

In v16.2 and older, the RibbonControlStyle.Default value is equal to RibbonControlStyle.Office2007. In v17.1 and newer, the RibbonControlStyle.Default value is equivalent to RibbonControlStyle.Office2013.

We recommend you use a Ribbon style with a corresponding skin.

The following code specifies the Office365 style for a RibbonControl:

csharp
ribbonControl1.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office365;
vb
ribbonControl1.RibbonStyle = DevExpress.XtraBars.Ribbon.RibbonControlStyle.Office365

See Also

Ribbon Styles

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace