RibbonColorPaletteClickEventArgs.Value Property
Returns the selected color value.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| String | The selected color. |
Remarks
The following code snippet displays the selected color value of the clicked color palette item:
<DxRibbon>
<DxRibbonTab Text="Home">
<DxRibbonGroup>
<DxRibbonColorPaletteItem Colors="@DxColorPalettePresets.GetPalette(ColorPalettePresetType.FluentThemeGradient)"
Click="OnClick" />
</DxRibbonGroup>
</DxRibbonTab>
</DxRibbon>
<p>Current color: @CurrentColor</p>
@code {
string CurrentColor = "";
private void OnClick(RibbonColorPaletteClickEventArgs args) {
CurrentColor = args.Value;
}
}
See Also