Back to Devexpress

RichEditControl.Ribbon Property

wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-2d70e8d1.md

latest2.9 KB
Original Source

RichEditControl.Ribbon Property

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

Declaration

csharp
[Browsable(false)]
public RibbonControl Ribbon { get; set; }
vb
<Browsable(False)>
Public Property Ribbon As RibbonControl

Property Value

TypeDescription
RibbonControl

A RibbonControl instance containing command UI for the RichEditControl.

|

Remarks

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

xml
</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

xml
</dxr:RibbonControl>
    <dxre:RichEditControl Name="richEditControl1" BarManager="{Binding ElementName=barManager1, Mode=OneTime}" Ribbon="{Binding ElementName=ribbonControl1, Mode=OneTime}" CalculateDocumentVariable="richEditControl1_CalculateDocumentVariable" />
</DockPanel>

See Also

RichEditControl Class

RichEditControl Members

DevExpress.Xpf.RichEdit Namespace