Using Binding.StringFormat
I know I am a little late on blogging about .NET 3.5 SP1, but here goes... This is a huge release... so much more than just a service pack! The feature that is getting a lot of attention on the net is the new hardware accelerated effect... thy are awesome!
What I want to explorer a little thou is the new Binding.StringFormat!
Value converters are great to shape data being binded too... but if I have to create value converter every time I need to format my text, well... Microsoft has listened too their users and added a very useful StringFormat to the Binding object.
Lets assume I have a data object I am binding too that has a price property... and I need to format the returned value a little. The new syntax makes this very easy
<TextBlock Text="{Binding Price, StringFormat='Price: R{0:000.00}'}" />
Cool!!!
The only thing to remember is that your target property must be of type string (Like the Text property of a TextBlock)!
NOTE: I first tried using the Content property of the Label... not so successful! (Thanks Corrado Cavalli)
UPDATE: n4cer pointed out the ContentStringFormat property!
If you found this useful, please 
UPDATE: Corrado pointed me to this excellent article about Binding.StringFormat by Vincent Sibal
UPDATE: Lester Lebo has a good article about this
Who else blogged about .NET 3.5 SP1?
Scott Guthrie - Visual Studio 2008 and .NET Framework 3.5 Service Pack 1 Beta
Tim Sneath - Introducing the Third Major Release of Windows Presentation Foundation
Scott Hanselman - VS2008 and .Net 3.5 SP1 Beta - Should You Fear This Release
Lester Lebo - .NET 3.5 SP1 - Try it out today
Josef Goldberg - What’s New for Performance in WPF in .Net 3.5 SP1 & Performance improvements in WPF in .Net 3.5 / 3.0 SP1
PS. After I posted this, I saw that Sacha posted about it here