WPF Textbox accept INT but not NULLABLE INT?

c#, int, nullable, wpf

Solution

Use:

{Binding TargetNullValue=''}

Problem

Model ``` public int? SizeLength { get; set; } ``` XAML ``` <TextBox Text="{Binding [someViewModel].SizeLength, Mode=TwoWay}"></TextBox> ``` Once user try to backspace or delete the value in this `textbox`, a message `Value '' cannot be converted`. May I know what's wrong with it?

Original source