Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxRibbonColorPaletteItem.Value Property

Specifies the selected color value.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public string Value { get; set; }

#Property Value

Type Description
String

The selected color.

#Remarks

Use the Value property to specify the selected color value or to bind the value to a data source object. You can use the @bind attribute to bind the Value property to a data field. Refer to the following topic for details: Two-Way Data Binding.

razor
...
<DxRibbonColorPaletteItem @bind-Value="@CurrentColor" />
...

@code {
    string CurrentColor { get; set; } = "#5BCA35";
}

To respond to the value change, handle the ValueChanged event.

See Also