Search This Blog

Thursday, February 9, 2012

Using StringFormat in Binding

I had a problem using string format for a simple task of just "following the string from Binding with a ‘:’ sign. This can accomplished with:

Content="{Binding a,Source={StaticResource b}, StringFormat='{}{0}:'}"

Don’t forget the ‘’ signs.

No comments:

Post a Comment

If you like this post, please leave a comment :)