Back to Devexpress

RibbonStyle Enum

wpf-devexpress-dot-xpf-dot-ribbon-344c0e3a.md

latest3.3 KB
Original Source

RibbonStyle Enum

Enumerates available paint styles for a Ribbon Control.

Namespace : DevExpress.Xpf.Ribbon

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

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public enum RibbonStyle
vb
Public Enum RibbonStyle

Members

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.

|

The following properties accept/return RibbonStyle values:

Remarks

Use the RibbonControl.RibbonStyle property to change the RibbonControl’s paint style.

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

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#L27

xml
<dxe:ComboBoxEditSettings.Items>
    <dxr:RibbonStyle>Office2019</dxr:RibbonStyle>
    <dxr:RibbonStyle>Office2010</dxr:RibbonStyle>

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

xml
<dxe:ComboBoxEditSettings IsTextEditable="False" PopupMaxHeight="250"
                              ItemsSource="{dxe:EnumItemsSource EnumType={x:Type dxr:RibbonStyle}}"/>
</dxb:BarEditItem.EditSettings>

See Also

RibbonStyle

DevExpress.Xpf.Ribbon Namespace