blazor-devexpress-dot-blazor-dot-ribbon-ba83b391.md
Defines the programmatic interface for the DxRibbonGroup component.
Namespace : DevExpress.Blazor.Ribbon
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public interface IRibbonGroup :
IRibbonElement,
IRibbonNode,
IRibbonIconSource,
IRibbonGroupItemCollection
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:
<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