Reputation: 4995
I'm trying to create a key for a class to use in XAML, but Visual Studio 11 says that no such class exists.
Steps:
I created a class inside my program namespace:
namespace Test {
public class PointCollectionConverter : System.Windows.Data.IValueConverter....
I added a local namespace reference in MainWindow.xaml
xmlns:local="clr-namespace:GeometryTest"
I try to add the class as a resource:
<Window.Resources>
<local:PointCollectionConverter x:Key="pointCollectionConverter"/>
</Window.Resources>
Fixed after recompilation.
Upvotes: 3
Views: 4024
Reputation: 184296
The namespace is Test
and you use GeometryTest
? Something's not right here.
How about:
xmlns:local="clr-namespace:Test"
Upvotes: 3