Back to Devexpress

DxRibbonColorPaletteItem.Value Property

blazor-devexpress-dot-blazor-dot-dxribboncolorpaletteitem-2f9cf726.md

latest1.5 KB
Original Source

DxRibbonColorPaletteItem.Value Property

Specifies the selected color value.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public string Value { get; set; }

Property Value

TypeDefaultDescription
Stringnull

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.

Implements

Value

See Also

DxRibbonColorPaletteItem Class

DxRibbonColorPaletteItem Members

DevExpress.Blazor Namespace