c# – TextBox changes the value to decimal (EN) when pressing TAB, however I want to leave currency (REAL) in the field

Question:

I have a field

 <TextBox x:Name="TbTotalICMS" Style="{StaticResource MeuTextBoxValor}" Text="{Binding Vicms}" />

My Vicms is a decimal. When pressing the TAB key, the value that is 1.00 (example) it becomes 100. As it is a decimal in English it takes the comma and changes it to a dot. I need that when I press TAB it stays like this.

Answer:

I solved this by putting a ConverterCulture!

 <TextBox x:Name="TbTotalICMS" Style="{StaticResource MeuTextBoxValor}" Text="{Binding Vicms,  ConverterCulture='pt-BR'}" />
Scroll to Top