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

    Defines the programmatic interface for the DxRibbonApplicationTabItem component.

    Namespace: DevExpress.Blazor.Ribbon

    Assembly: DevExpress.Blazor.v25.2.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public interface IRibbonApplicationTabItem :
        IRibbonElement,
        IRibbonNode,
        IRibbonIconSource,
        IRibbonClickableItem<RibbonApplicationTabItemClickEventArgs>,
        IRibbonInteractiveElement

    The following members return IRibbonApplicationTabItem objects:

    Remarks

    Use the IRibbonApplicationTabItem interface to read and modify DxRibbonApplicationTabItem component properties at runtime and customize the Ribbon application tab item appearance and behavior.

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

    The following code snippet gets an IRibbonApplicationTabItem reference and displays the corresponding application tab item:

    <DxRibbon>
        <DxRibbonApplicationTab Text="File">
            <DxRibbonApplicationTabItem Text="New" />
            <DxRibbonApplicationTabItem Text="Open" />
            <DxRibbonApplicationTabItem Text="Save"
                                        Visible="false"
                                        @ref="applicationTabItemRef" />
        </DxRibbonApplicationTab>
        <DxRibbonTab Text="Home">
            <DxRibbonGroup>
                <DxRibbonItem Text="Show Save Menu"
                              Click="EnableSaving" />
            </DxRibbonGroup>
        </DxRibbonTab>
    </DxRibbon>
    
    @code {
        IRibbonApplicationTabItem applicationTabItemRef;
    
        void EnableSaving(RibbonItemClickEventArgs e) {
            applicationTabItemRef.Visible = true;
        }
    }
    
    See Also