Friday, April 3, 2009

WPF ConverterParameter

Just came to my knowledge and want share with people.

<TextBlock Text="{Binding Path=ABCD, Converter={StaticResource FormatConv}, ConverterParameter='{0:C}'}" />

The above code wont work i know there is nothing wrong in there but still compiler would cry about it.

One needs to add blank space in the ConverterParameter value and that will solve the problem.

ConverterParameter=' {0:C}'

No comments:

Post a Comment