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.