Articles in this section
Category / Section

How to group the currency value in WPF CurrencyTextBox ?

1 min read

You can group the currency value by using CurrencyGroupSeperator and CurrencyGroupSizes properties of WPF CurrencyTextBox. You can show the group separator by enable the GroupSeperatorEnabled property to true.

XAML

//Code Explains How to group the value in Currency TextBox
<Grid>
     <syncfusion:CurrencyTextBox Name="Currency" Width="150" Height="60" CurrencyGroupSeparator="/" GroupSeperatorEnabled="True" CurrencyGroupSizes="5"></syncfusion:CurrencyTextBox>
</Grid>

C#

//Code Explains How to group the value in Currency TextBox
namespace CurrencyTextBox
{
  public partial class MainWindow : Window
  {
     public MainWindow()
     {
       InitializeComponent();
       Currency.CurrencyGroupSizes = 5;
     }
  }
}

 

                 Changing group format 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