@srsyogesh was right in the comments, however I had to actual restart vs 2012 to resolve this issue.
Unable to find local resource XAML
-
01-06-2022 - |
Question
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 ..
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow