The StringFormat property of the Binding object applies only when the target property is of type String . In Label target Content property is of type Object , so StringFormat not respected.
To make it work on a shortcut, use ContentStringFormat . If you must use a TextBlock , you can use the StringFormat provided by Binding .
source share