Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exception: 'IValueConverter' type does not have a public TypeConverter class

I have just run into this exception on an IValueConverter I am implementing:

IValueConverter type does not have a public TypeConverter class

Has anyone else come across this? What's the cause, and how do I fix? Thanks.

like image 981
David Veeneman Avatar asked Jan 25 '10 16:01

David Veeneman


1 Answers

Simple solution, as it turns out. I had referenced my value converter like this:

<Binding Path="Foreground" Converter="StaticResource BrushToRgbConverter" ConverterParameter="B" />

instead of this:

<Binding Path="Foreground" Converter="{StaticResource BrushToRgbConverter}" ConverterParameter="B" />

In other words, I had omitted the braces from my Converter reference.

like image 57
David Veeneman Avatar answered Nov 01 '22 15:11

David Veeneman