blazor-devexpress-dot-blazor-bf6e189f.md
Contains data for the color palette item’s Click event.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public class RibbonColorPaletteClickEventArgs :
RibbonItemClickEventArgs
The following code snippet adds an automatic color swatch to the clicked color palette item:
<DxRibbon>
<DxRibbonTab Text="Home">
<DxRibbonGroup>
<DxRibbonColorPaletteItem @bind-Value="CurrentColor"
Colors="@DxColorPalettePresets.GetPalette(ColorPalettePresetType.FluentThemeGradient)"
Click="OnClick"/>
</DxRibbonGroup>
</DxRibbonTab>
</DxRibbon>
@code {
string CurrentColor = "";
private void OnClick(RibbonColorPaletteClickEventArgs args) {
args.Item.AutomaticColor = "black";
args.Item.AutomaticColorCaption = "Black";
}
}
Object EventArgs DevExpress.Blazor.Ribbon.Internal.RibbonEventArgs DevExpress.Blazor.Ribbon.Internal.RibbonNodeEventArgs RibbonElementClickEventArgs RibbonItemClickEventArgs RibbonColorPaletteClickEventArgs
See Also