Nullable Items don't behave correctly


If the bound property is of type nullable<T> i.e. int? the textbox should be able to be set to empty.
However this results in an error on screen.
Closed Jul 21, 2010 at 8:31 AM by AdamMills


AdamMills wrote Jul 21, 2010 at 8:30 AM

Make sure you use TargetNullValue={x:Static System:String.Empty} in your binding to tell WPF that empty string (value used by empty textbox) should be null

Thanks to

wrote Jul 21, 2010 at 8:31 AM

wrote Feb 1, 2013 at 2:27 AM

wrote May 8, 2013 at 5:11 PM