Back to Devexpress

IRibbonGroup Interface

blazor-devexpress-dot-blazor-dot-ribbon-ba83b391.md

latest1.5 KB
Original Source

IRibbonGroup Interface

Defines the programmatic interface for the DxRibbonGroup component.

Namespace : DevExpress.Blazor.Ribbon

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public interface IRibbonGroup :
    IRibbonElement,
    IRibbonNode,
    IRibbonIconSource,
    IRibbonGroupItemCollection

Remarks

Use the IRibbonGroup interface to read and modify DxRibbonGroup component properties at runtime and customize the Ribbon group’s appearance and behavior.

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

The following code snippet gets an IRibbonGroup reference and changes the group’s adaptive priority:

razor
<DxRibbon>
    <DxRibbonTab Text="Home">
        <DxRibbonGroup @ref="groupRef">
            <DxRibbonItem Text="Decrease Group Priority"
                          Click="DecreasePriority" />
        </DxRibbonGroup>
    </DxRibbonTab>
</DxRibbon>

@code {
    IRibbonGroup groupRef;

    void DecreasePriority(RibbonItemClickEventArgs e) {
        groupRef.AdaptivePriority = 2;
    }
}

See Also

IRibbonGroup Members

DevExpress.Blazor.Ribbon Namespace