I am trying to display an adress label. what i want is if AddresssLine2 is not an empty string (its never null) it should display it then a newline (I'm using VB, so its 
), otherwise just display AddressLine2, which is an empty string, so in escense it is ignored. however, the StringFormat of the inner binding of AddressLine2 is completely ignored. it just displays the value of AddressLine2 and ignores the StringFormat. I even tried putting a constant only into StringFormat (StringFormat=" hi") but it ignored it and bound directly to AddressLine2. here is my markup.
<TextBlock.Text>
<MultiBinding StringFormat="{}{0} 
{1}
{2} {3}, {4} {5}">
<Binding Path="FullName" />
<Binding Path="AddressLine1" />
<Binding Path="AddressLine2" StringFormat="{}{0}
" />
<Binding Path="City" />
<Binding Path="State" />
<Binding Path="ZipCode" />
</MultiBinding>
</TextBlock.Text>
my question is: why does it ignore the inner StringFormat (I tried all different combinations; "'{0}
'", "'{}{0}
'", " {0}
", none worked)?
Also, is there a better way to do this (in XAML, I dont want a converter or any code behind)?