Skip to main content
All docs
V25.2
  • IRibbonTab Interface

    Defines the programmatic interface for the DxRibbonTab component.

    Namespace: DevExpress.Blazor.Ribbon

    Assembly: DevExpress.Blazor.v25.2.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public interface IRibbonTab :
        IRibbonTabBase<RibbonTabClickEventArgs>,
        IRibbonElement,
        IRibbonNode,
        IRibbonIconSource,
        IRibbonClickableItem<RibbonTabClickEventArgs>,
        IRibbonInteractiveElement

    The following members return IRibbonTab objects:

    Remarks

    Use the IRibbonTab interface to read and modify DxRibbonTab component properties at runtime and customize the Ribbon application tab’s appearance and behavior.

    Obtain an IRibbonTab instance with the @ref attribute or from Ribbon event arguments.

    The following code snippet gets an IRibbonTab reference and toggles the corresponding tab:

    <DxRibbon>
        <DxRibbonTab Text="Home">
            <DxRibbonGroup>
                <DxRibbonItem Text="Toggle Tab"
                              Click="ToggleTab" />
            </DxRibbonGroup>
        </DxRibbonTab>
        <DxRibbonTab Text="Insert"
                     @ref="tabReference">
            <!-- ... -->
        </DxRibbonTab>
    </DxRibbon>
    
    @code {
        IRibbonTab tabReference;
    
        void ToggleTab(RibbonItemClickEventArgs e) {
            tabReference.Visible = !tabReference.Visible;
        }
    }
    
    See Also