I have a Listview
and a Textbox
binded to the selected item.
When the user deletes the value in the textbox (which is a double), I get the following error : Value '' cannot be converted
. So I had TargetNullValue=''
, like this :
<TextBox x:Name="textBoxVoltage" Text="{Binding Voltage, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, TargetNullValue=''}" />
But I still get the error....What am I doing wrong ? Thanks.