Tip: WPF 3.0 String.Format
Posted on June 3rd, 2008 by Paul Stovell
One of the upcoming additions in .NET 3.5 SP1 is a StringFormat parameter you can pass along with your bindings. Sacha Barber has an example of how to use it:
<TextBlock
Text="{Binding Path=AccountBalance, StringFormat=’You have {0:c} in your bank account.’}"
/>
However, if you can’t install the service pack or you […]
Filed under: WPF, Binding | 5 Comments »
