How to use Quotation Marks in StringFormat of Binding in WPF

Viewed 4537

I'm trying to wrap a TextBlock's Text property (which is a string that is pulled from the database) in quotes without using a converter; I'd never tried the Binding's StringFormat property before today, and I seem to be doing something wrong.

Here is the code that isn't working:

<TextBlock Text="{Binding QuoteText, StringFormat='\"{0}\"'}" />

Any ideas?

1 Answers
Related