So i've got the following:
<TextBlock.Text>
<MultiBinding StringFormat="So and so will donate {0:C0}
to {1}, bringing the
total amount to {2:C0}.">
<Binding Path="VisitorTotal" />
<Binding Path="EventName" />
<Binding Path="EventTotal" />
</MultiBinding>
</TextBlock.Text>
I've tried 

,
, \n
, \\n
, and various combinations thereto. Nothing will give me a newline. What's the deal?
My preference is to use Environment.NewLine
directly:
<MultiBinding StringFormat="So and so will donate {0:C0}{3}to {1}, bringing the{3}total amount to {2:C0}.">
<Binding Path="VisitorTotal" />
<Binding Path="EventName" />
<Binding Path="EventTotal" />
<Binding Source="{x:Static System:Environment.NewLine}"/>
</MultiBinding>
However, you'll also need to make sure the TextBlock.TextWrapping
is set appropriately.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With