Use StringFormat in binding expressions.

By [)ia6l0 iii

You can format the strings in binding expressions that are used to bind data.

For e.g. the Text property of the TextBlock can be formatted to a format specified below:
    <TextBlock Text=""{Binding Date, StringFormat='{}{0:dd/MM/yy}'}"" />

Note: This is available as part of 3.5 SP1.

Use StringFormat in binding expressions.  (1424 Views)