DxRibbonItem.IsPrimary Property
Highlights the Ribbon item.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[DefaultValue(false)]
[Parameter]
public bool IsPrimary { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| Boolean | false |
|
Remarks
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.
Implements
See Also