4
Hello I have my decimal textbox like this:
<TextBox x:Name="TextBox" KeyDown="TextBox_KeyDown"
Style="{StaticResource MeuTextBoxValor}" Height="23" Margin="1"
Text="{Binding Peso, NotifyOnValidationError=true, StringFormat={}{0:#0.00##},
ConverterCulture='pt-BR',
UpdateSourceTrigger=PropertyChanged}"
VerticalAlignment="Center" Width="120" />
When you put a comma in this field it gets like this
0,00
And when he starts writing he writes like this
0,22,00
I’d like to take that "." off to the right.
I’ve tried to give a TextBox.Text.Replace(",00","")
but he continues to put.
Try to change your
StringFormat
for{0:#,##0.00}
.– João Martins
Same thing João
– Fabio C