RibbonItemCheckedChangedEventArgs Class
Contains data for the CheckedChanged event.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
Declaration
public class RibbonItemCheckedChangedEventArgs :
RibbonValueChangedEventArgsGeneric<bool>
Remarks
Use the RibbonComboBoxEditTextChangedEventArgs class to identify the event type in the NodeEvent event handler.
The following code snippet displays the current state of the Ribbon’s 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 = $"Font style changed to {GetFontStyle(eventArgs.Value)}";
}
}
private string GetFontStyle(bool value) {
if(value) return "Bold";
else return "Normal";
}
}
Inheritance
See Also