Back to Devexpress

RibbonControl.RibbonStyle Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-ribboncontrol-9d324cc8.md

latest4.9 KB
Original Source

RibbonControl.RibbonStyle Property

Gets or sets the style of the RibbonControl. This is a dependency property.

Namespace : DevExpress.Xpf.Ribbon

Assembly : DevExpress.Xpf.Ribbon.v25.2.dll

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public RibbonStyle RibbonStyle { get; set; }
vb
Public Property RibbonStyle As RibbonStyle

Property Value

TypeDescription
RibbonStyle

A RibbonStyle enumeration value that specifies the paint style.

|

Available values:

NameDescription
Office2007

A RibbonControl’s elements are painted in the Office2007 paint style.

| | Office2010 |

A RibbonControl’s elements are painted in the Office2010 paint style.

| | TabletOffice |

Style inspired by the Ribbon control in MS Office for iPad.

| | OfficeSlim |

The Ribbon style inspired by the ribbon UI introduced in Microsoft “Office Universal” apps.

| | Office2019 |

A RibbonControl’s elements are painted in the Office2017 paint style.

|

Remarks

The RibbonStyle property allows you to choose a Ribbon paint style.

|

Office 2019 Style

|

| |

Office 2010 Style

|

| |

Office 2007 Style

|

| |

Tablet Office

|

| |

Office Slim

|

|

If you want to get the Office 2019 style, Office 2010 style or Office 2007 style ribbon appearance, you should use the corresponding RibbonStyle and DevExpress Theme.

The following code snippets (auto-collected from DevExpress Examples) contain references to the RibbonStyle property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-mvvm-behaviors-barItems-based-theme-selectors/CS/WpfApplication1/MainWindow.xaml#L17

xml
DockPanel.Dock="Top"
RibbonStyle="Office2019">
<dxr:RibbonControl.PageHeaderItems>

wpf-create-a-ribboncontrol/CS/RibbonControl_Ex/MainWindow.xaml#L26

xml
PageCategoryAlignment="Right"
RibbonStyle="Office2010"
>

wpf-spreadsheet-bind-spreadsheet-to-ms-sql-server-database/CS/WpfSpreadsheet_BindToDataSource/MainWindow.xaml#L1187

xml
<DockPanel>
    <dxr:RibbonControl x:Name="ribbonControl1" DockPanel.Dock="Top" ShowApplicationButton="False" RibbonStyle="Office2010">
        <dxr:RibbonControl.ToolbarItemLinks>

wpf-scheduler-use-entity-framework-to-bind-to-data/CS/DXSample/MainWindow.xaml#L18

xml
PageCategoryAlignment="Right"
RibbonStyle="Office2019"
ShowApplicationButton="False" />

wpf-spreadsheet-bind-a-worksheet-to-generic-list-or-bindinglist-data-source/CS/DataBindingToListExample/MainWindow.xaml#L544

xml
<DockPanel>
    <dxr:RibbonControl x:Name="ribbonControl1" DockPanel.Dock="Top" MinimizationButtonVisibility="Collapsed" RibbonStyle="Office2010" ShowApplicationButton="False">
        <dxr:RibbonDefaultPageCategory>

See Also

IsOffice2010Style

RibbonControl Class

RibbonControl Members

DevExpress.Xpf.Ribbon Namespace