You can't do it directly since the
TextBlock.Text
wants a string, not an
Int16
.
The
Label
works because the type of the
Content
property is
object
so it's
ContentPresenter
will automatically call
.ToString()
if necessary.
There's nothing in the TextBlock to do the conversion.
You
can use the StringFormat property of the binding to make it work:
<TextBlock Text="{StaticResource strHelloWorld, StringFormat={0}}" FontSize="56" />