RibbonColorPaletteValueChangedEventArgs.Item Property
Returns information about a color palette item.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public IRibbonColorPalette Item { get; }
Property Value
| Type | Description |
|---|---|
| IRibbonColorPalette | An object that contains information about a color palette item. |
Remarks
The following code snippet displays the caption of the Ribbon color palette item when the value changes:
<DxRibbon NodeEvent="OnNodeEvent">
<DxRibbonTab Text="Home">
<DxRibbonGroup>
<DxRibbonColorPaletteItem Text="Font Color"
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 from {eventArgs.Item.Text}";
}
}
}
See Also