wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-2d70e8d1.md
Gets or sets the Ribbon control containing command controls for use with the current RichEditControl.
Namespace : DevExpress.Xpf.RichEdit
Assembly : DevExpress.Xpf.RichEdit.v25.2.dll
NuGet Package : DevExpress.Wpf.RichEdit
[Browsable(false)]
public RibbonControl Ribbon { get; set; }
<Browsable(False)>
Public Property Ribbon As RibbonControl
| Type | Description |
|---|---|
| RibbonControl |
A RibbonControl instance containing command UI for the RichEditControl.
|
If you use the RichEditControl.CommandBarStyle property to specify the ribbon command bar, the Ribbon property returns null.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Ribbon 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.
dxrichedit-for-wpf-how-to-print-a-document-as-a-series-of-images/CS/SaveAsImage/MainWindow.xaml#L47
</dxr:RibbonControl>
<dxre:RichEditControl x:Name="richEditControl1" BarManager="{Binding ElementName=barManager1, Mode=OneTime}" Ribbon="{Binding ElementName=ribbonControl1, Mode=OneTime}" Loaded="richEditControl1_Loaded" />
</DockPanel>
wpf-richedit-embed-a-live-chart-into-a-document/CS/RichEdit_InsertChart/MainWindow.xaml#L43
</dxr:RibbonControl>
<dxre:RichEditControl Name="richEditControl1" BarManager="{Binding ElementName=barManager1, Mode=OneTime}" Ribbon="{Binding ElementName=ribbonControl1, Mode=OneTime}" CalculateDocumentVariable="richEditControl1_CalculateDocumentVariable" />
</DockPanel>
See Also