Articles in this section
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;

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied