I won’t copy/paste my whole xaml file. It will be too long to explain it but here is what is interesting : I got a Binding of a Property “Name”
<TextBlock Text="{Binding Name}"/>
The thing is that sometimes, my item doesn’t have a “Name” property. It doesn’t crash but I simply got an empty Text in my TextBlock
What I would to do, if Name is empty, is to be binded to “nothing”, just {Binding}. This will display my Object name and it will be perfect !
Thanks in advance for any help, and sorry if it is a noobie question 🙁
What you want here is a PriorityBinding.
In particular, it would look something like (exact syntax may need some verification):
Note that this specifically falls back when the Name property is not available on the object being bound; if the Name property has an empty string value, I believe it will still use that empty value.