Hello Devz,

Imagine you have a TextBox binded to a nullable integer and you put a value in it.

Now let’s say you delete this value.

You expect to have your value to be null.

To be able to do that, you need to update the properties of you binding like this:

<TextBox Text="{Binding Value, UpdateSourceTrigger=PropertyChanged, TargetNullValue=''}"/>

Please notice the “TargetNullValue=”” which will set our value to null if empty.

Happy coding! 🙂