New to Telerik UI for .NET MAUI? Start a free 30-day trial
.NET MAUI NumericInput Events
Updated over 6 months ago
The NumericInput exposes a ValueChanged event, which is raised after the input value is changed.
The ValueChanged event handler receives two parameters:
-
The
sender, which is theRadNumericInputcontrol; -
Telerik.Maui.Controls.ValueChangedEventArgsprovides the following properties:PreviousValueof typedouble?gets the old value.NewValueof typedouble?gets the new value.
The following example demonstrates how to use the ValueChanged event.
1. Define the NumericInput:
XAML
<telerik:RadNumericInput x:Name="numericInput" ValueChanged="RadNumericInput_ValueChanged"/>
2. Set the ValueChanged event:
C#
private void RadNumericInput_ValueChanged(object sender, Telerik.Maui.Controls.ValueChangedEventArgs<double?> e)
{
// implement your logic here
}