Back to Devexpress

DxRibbonItem.IsPrimary Property

blazor-devexpress-dot-blazor-dot-dxribbonitem-665fa5c1.md

latest1.7 KB
Original Source

DxRibbonItem.IsPrimary Property

Highlights the Ribbon item.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(false)]
[Parameter]
public bool IsPrimary { get; set; }

Property Value

TypeDefaultDescription
Booleanfalse

true to highlight an item; otherwise, 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.

razor
<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

IsPrimary

See Also

DxRibbonItem Class

DxRibbonItem Members

DevExpress.Blazor Namespace