New to Telerik UI for .NET MAUI? Start a free 30-day trial
.NET MAUI NumericInput Events
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 theRadNumericInput
control; -
Telerik.Maui.Controls.ValueChangedEventArgs
provides the following properties:PreviousValue
of typedouble?
gets the old value.NewValue
of 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
}