Articles in this section
Category / Section

How to restrict the decimal values in WPF CurrencyTextBox ?

1 min read

You can restrict the number of decimal places by using CurrencyDecimalDigits property of WPF CurrencyTextBox.

XAML

<syncfusion:CurrencyTextBox Name="currencybox"  CurrencyDecimalDigits="0"  />

C#

currencybox.CurrencyDecimalDigits = 0;

The following screenshot displays the CurrencyTextBox.

Restriction in WPF CurrencyTextBox

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