Range in UWP Numeric UpDown (SfNumericUpDown)
10 May 20212 minutes to read
Input values can be restricted to a specific range by setting the Maximum and Minimum properties.
Maximum
The maximum possible value that user can set to the control.
<Page xmlns:editors="using:Syncfusion.UI.Xaml.Controls.Input">
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<editors:SfNumericUpDown x:Name="numericUpDown"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="200"
Maximum="100"
Value="120"/>
</Grid>
</Page>
numericUpDown.Maximum = 100;
numericUpDown.Maximum = 100
Minimum
The Minimum possible value that user can set to the control.
<Page xmlns:editors="using:Syncfusion.UI.Xaml.Controls.Input">
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<editors:SfNumericUpDown x:Name="numericUpDown"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="200"
Minimum="50"
Value="5"/>
</Grid>
</Page>
numericUpDown.Minimum = 50;
numericUpDown.Minimum = 50
See also
How to set the maximum and minimum value in SfNumericUpDown control
How to increment and decrement the value of SfNumericUpDown control