RibbonItemCheckedChangedEventArgs.Item Property
Returns information about a selected Ribbon item.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public IRibbonItem Item { get; }
Property Value
| Type | Description |
|---|---|
| IRibbonItem | An object that contains information about a selected Ribbon item. |
Remarks
The following code snippet displays the label of the selected/cleared Ribbon toggle button:
<DxRibbon NodeEvent="OnNodeEvent">
<DxRibbonTab Text="Home">
<DxRibbonGroup>
<DxRibbonToggleItem Text="Bold" IconCssClass="dx-icon-bold" />
</DxRibbonGroup>
</DxRibbonTab>
</DxRibbon>
<p>@Notification</p>
@code {
string Notification = "";
private void OnNodeEvent(RibbonNodeEventArgs args) {
if(args is RibbonItemCheckedChangedEventArgs eventArgs) {
Notification = $"Toggle button: {eventArgs.Item.Text}";
}
}
}
See Also