How to use quote " character in XAML binding?
quotes, wpf, xaml
Solution
You have two options:
""{0}""
'"{0}"'
This is explained here: http://msdn.microsoft.com/en-us/library/ms748250.aspx
In your example (I couldn't see what you were trying to do at first), you'll probably want to do:
...='"{0}"'
Problem
I'm trying to do this: ``` <TextBlock Text="{Binding Path=Text, Converter={StaticResource stringFormatConverter}, ConverterParameter='\"{0}\"'}" /> ``` But this is apparently not the way to get a quote into a XAML binding string. What is the appropriate way to get "\"{0}"\" to work here?