Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

NotifyOnValidationError or ...?

$
0
0

Hi. I have the following.

<TextBox Name="txtCostoNeto" Text="{Binding Articulo.CostoNeto, UpdateSourceTrigger=PropertyChanged}"/>

public class Articulo
{
...
public decimal CostoNeto { get; set; }
....
}


1) If I write in the textbox NO numeric characters; signals an error in red. I can disable this check?

2) By default, the textbox has a number 0, how can I do so that the textbox is empty?

Thx!



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>