Back to Devexpress

DxRibbonSpinEditItem<TValue>.ValueChanged Event

blazor-devexpress-dot-blazor-dot-dxribbonspinedititem-1-a08a5d24.md

latest1.5 KB
Original Source

DxRibbonSpinEditItem<TValue>.ValueChanged Event

Fires after the spin editor’s value changes.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public EventCallback<TValue> ValueChanged { get; set; }

Parameters

TypeDescription
TValue

The new editor value.

|

Remarks

Handle the ValueChanged event to respond to the Value change.

razor
...
<DxRibbonSpinEditItem Value="@CurrentFontSize"
                      ValueChanged="@((int newSize) => OnFontSizeChanged(newSize))"
                      MinValue="6"
                      MaxValue="32"
                      Increment="2"
                      Width="100px"/>
...
@code {
    private int CurrentFontSize { get; set; } = 8;

    void OnFontSizeChanged(int newSize) {
        // Your code
    }
}

Implements

DevExpress.Blazor.Ribbon.IRibbonSpinEdit<TValue>.ValueChanged

See Also

DxRibbonSpinEditItem<TValue> Class

DxRibbonSpinEditItem<TValue> Members

DevExpress.Blazor Namespace