Articles in this section

How to restrict the decimal values in WPF CurrencyTextBox ?

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)
Access denied
Access denied