Is there any way to do this in a binding expression:
Text="Hello {Binding CurrentUser}"
ie:
<TextBlock HorizontalAlignment="Right" Foreground="#3163AB" Margin="0,0,0,5"
FontWeight="Bold" Text="Hello {Binding CurrentUser}" />
Obviously I could break it out into two separate textblocks, but this would be much nicer.
As of .NET 4, the
Textproperty of aRuncan be bound. I use it all the time:The StringFormat method is nice, but using a Run with a binding allows the use of Value Converters.