Category / Section
How to restrict the decimal values in WPF UpDown?
1 min read
You can restrict the decimal values by using NumberDecimalDigits property in WPF UpDown control.
XAML
<syncfusion:UpDown x:Name="updown" NumberDecimalDigits="0" HorizontalAlignment="Center" VerticalAlignment="Center" Height="30" Width="100"> </syncfusion:UpDown>
C#
updown.NumberDecimalDigits = 0;