-1

In my user control XAML I am trying to use an IValueConverter .. I have a class named NullToBoolConverter which implements IValueConverter.

I define my namespace like this:

xmlns:local="clr-namespace:MyApp"

In my UserControl.Resources, I am trying to reference this class, like this:

<UserControl.Resources>
    <local:NullToBoolConverter x:Key="IsNull"/>
</UserControl.Resources>

When I start to type in the name of the class NullToBoolConverter, it appears in the drop down menu in the list of available local classes, but as soon as I select it I get the message: The name "NullToBoolConverter" does not exist in the namespace "clr-namespace:MyApp".

Am I doing something wrong here ? Any help is appreciated ..

Sherlock
  • 5,557
  • 6
  • 50
  • 78

1 Answers1

0

@srsyogesh was right in the comments, however I had to actual restart vs 2012 to resolve this issue.

Sherlock
  • 5,557
  • 6
  • 50
  • 78