I have a listBox using an itemTemplate that contains the following line:
>
In BindingBase
have two properties: TargetNullValue
and FallbackValue
.
TargetNullValue
returns your value when the value of the source is null.
FallbackValue
returns your value when the binding is unable to return a value.
Example of using:
pack://application:,,,/NotFound.png
pack://application:,,,/NullImage.png
See this links, for more information:
BindingBase.TargetNullValue Property
BindingBase.FallbackValue Property