Tuesday, October 8, 2013

Fix for "The TypeConverter for "IValueConverter" does not support converting from a string" error

Usual reason for The TypeConverter for "IValueConverter" does not support converting from a string error is forgotten StaticResource markup extension.

In other words, instead of

<TextBlock Text="Success!" Visibility="{Binding SuccessVisible, Converter=BooleanToVisibilityConverter}" />

write the following:

<TextBlock Text="Success!" Visibility="{Binding SuccessVisible, Converter={StaticResource BooleanToVisibilityConverter}}" />

8 comments: