Ответ 1
Все, что имеет свойство Content
, имеет специальное свойство ContentStringFormat
, которое вы должны использовать, а не указание StringFormat в Binding.
Вот так:
<Window.Resources xmlns:sys="clr-namespace:System;assembly=mscorlib">
<sys:Int16 x:Key="MyValue">100</sys:Int16>
</Window.Resources>
<StackPanel DataContext="{StaticResource MyValue}">
<!-- using Label -->
<Label Content="{Binding}" ContentStringFormat="{}{0:C}" />
<!-- using TextBlock-->
<TextBlock Text="{Binding, StringFormat={0:C}}" />
</StackPanel>