RibbonColorPaletteValueChangedEventArgs Class
Contains data for the ValueChanged event.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
Declaration
public class RibbonColorPaletteValueChangedEventArgs :
RibbonValueChangedEventArgsGeneric<string>
Remarks
Use the RibbonColorPaletteColorClickEventArgs class to identify the event type in the NodeEvent event handler.
The following code snippet displays the new color from the Ribbon color palette item:
<DxRibbon NodeEvent="OnNodeEvent">
<DxRibbonTab Text="Home">
<DxRibbonGroup>
<DxRibbonColorPaletteItem Colors="@DxColorPalettePresets.GetPalette(ColorPalettePresetType.FluentThemeGradient)" />
</DxRibbonGroup>
</DxRibbonTab>
</DxRibbon>
<p>@Notification</p>
@code {
string Notification = "";
private void OnNodeEvent(RibbonNodeEventArgs args) {
if(args is RibbonColorPaletteValueChangedEventArgs eventArgs) {
Notification = $"Changed color to {eventArgs.Value}";
}
}
}
Inheritance
See Also