menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RibbonContextualTab - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RibbonContextualTab

    Gets or sets the collection of contextual tabs for the SfRibbon component.

    Inheritance
    System.Object
    RibbonContextualTab
    Namespace: Syncfusion.Blazor.Ribbon
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class RibbonContextualTab : OwningComponentBase
    Remarks

    This property allows you to define and manage contextual tabs in the ribbon control, enabling users to interact with specific tabs based on certain actions or conditions. Contextual tabs are designed to appear only when they are relevant to the current task, enhancing the user experience by reducing clutter and providing context-sensitive options. You can include both built-in and custom ribbon items in these tabs, similar to standard ribbon tabs, offering a consistent and flexible design.

    Examples

    Below is an example of adding contextual tabs to the SfRibbon:

    
    
    
    
    
    
    
    
    
    

    Constructors

    RibbonContextualTab()

    Declaration
    public RibbonContextualTab()

    Properties

    ChildContent

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.RenderFragment

    IsSelected

    Gets or sets a value indicating whether the contextual tab is selected in the SfRibbon component.

    Declaration
    public bool IsSelected { get; set; }
    Property Value
    Type Description
    System.Boolean

    A boolean value that specifies whether the contextual tab is selected. The default value is false, meaning the tab is not selected by default.

    Remarks

    Use this property to programmatically set or determine the selection state of the contextual tab. When set to true, the tab becomes the active tab in the SfRibbon component.

    IsSelectedChanged

    Declaration
    public EventCallback<bool> IsSelectedChanged { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Boolean>

    Visible

    Gets or sets a value indicating whether the contextual tab is visible in the SfRibbon component.

    Declaration
    public bool Visible { get; set; }
    Property Value
    Type Description
    System.Boolean

    A boolean value that specifies the visibility of the contextual tab. The default value is false, meaning the tab is hidden by default.

    Remarks

    Use this property to control the visibility of the contextual tab dynamically based on the application's state or user actions. When set to true, the tab will be displayed in the SfRibbon component.

    VisibleChanged

    Declaration
    public EventCallback<bool> VisibleChanged { get; set; }
    Property Value
    Type
    Microsoft.AspNetCore.Components.EventCallback<System.Boolean>

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved