blazor-devexpress-dot-blazor-dot-dxribbonitem-665fa5c1.md
Highlights the Ribbon item.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(false)]
[Parameter]
public bool IsPrimary { get; set; }
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to highlight an item; otherwise, false.
|
Set IsPrimary to true to highlight a Ribbon item. Note that this option only changes item appearance and does not affect item behavior, adaptive priority, or keyboard navigation.
<DxRibbon>
<DxRibbonTab Text="Home">
<DxRibbonGroup Text="Format">
<DxRibbonItem Text="Cut"
IconCssClass="dx-icon-cut" />
<DxRibbonItem Text="Copy"
IconCssClass="dx-icon-copy" />
<DxRibbonItem Text="Paste"
IconCssClass="dx-icon-paste"
IsPrimary="true" />
</DxRibbonGroup>
</DxRibbonTab>
</DxRibbon>
Note
IsPrimary does not highlight items nested inside other items. If Ribbon width decreases and the item moves into a drop-down menu, its highlighting is removed.
See Also