3
I wish my Textbox had the following "mask" When I put two houses after the comma:
0,00
or when I put three:
0,000
or when I put 4:
0,0000
My code in WPF C# and the following:
<TextBox x:Name="ValorProdutoTextBox"
Text="{Binding ValorProduto, NotifyOnValidationError=true,
ValidatesOnExceptions=true, ConverterCulture='pt-BR'}"
UpdateSourceTrigger="ValorLostFocus"
Height="20"
Width="100" Margin="1" />
The result is always coming as determined by the 'Binding Product' that is in the database (DECIMAL 15.4)
0,0000
You tried to add a
StringFormat=N2
in your Binding?– Leandro Angelo
@Leandroangelo the N2 only goes two decimal places.
– Fabio C