dashboard-devexpress-dot-dashboardwin-dot-dashboarddesigner-8690ff98.md
Gets a Ribbon instance for the current Dashboard Designer.
Namespace : DevExpress.DashboardWin
Assembly : DevExpress.Dashboard.v25.2.Win.dll
NuGet Package : DevExpress.Win.Dashboard
[Browsable(false)]
public RibbonControl Ribbon { get; }
<Browsable(False)>
Public ReadOnly Property Ribbon As RibbonControl
| Type | Description |
|---|---|
| RibbonControl |
A RibbonControl instance.
|
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.
{
RibbonControl ribbon = dashboardDesigner.Ribbon;
RibbonPage page = ribbon.GetDashboardRibbonPage(DashboardBarItemCategory.ChartTools, DashboardRibbonPage.Design);
dashboard-constant-lines/CS/ConstantLineExtension.Win/ConstantLineModule.cs#L108
{
RibbonControl ribbon = dashboardDesigner.Ribbon;
RibbonPage page = ribbon.GetDashboardRibbonPage(DashboardBarItemCategory.ChartTools, DashboardRibbonPage.Design);
this.designer = designer;
BarButtonItem barItem = AddBarItem("Constant line", barImage, designer.Ribbon);
barItem.ItemClick += BarItem_Click;
Private Sub AddButtonToRibbon()
Dim ribbon As RibbonControl = dashboardDesigner.Ribbon
Dim page As RibbonPage = ribbon.GetDashboardRibbonPage(DashboardBarItemCategory.ChartTools, DashboardRibbonPage.Design)
Me.designer = designer
Dim barItem As BarButtonItem = AddBarItem("Constant line", barImage, designer.Ribbon)
AddHandler barItem.ItemClick, AddressOf BarItem_Click
See Also