Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

I need help figuring out this error: It makes no sense

$
0
0

I've read the help topics about this and none of them fit my situation.

I'm getting this error: "The name "ViewModelLocator" does not exist in the namespace "using: FlipControlSamp.ViewModel"

The name of my namespace is FlipControlSamp.  ViewModel is a folder in my project and the file ViewModelLocator.cs is definitely contained in the ViewModel folder.

Here is where I define the using statement:

xmlns:vm="using:FlipControlSamp.ViewModel"

This is the code where I get the error:

<vm:ViewModelLocator x:Key="Locator" />

I'm using VS Ultimate 2013.  I'm trying to create my app using c# and xaml.  The code is contained in my app.xaml file.  please tell me why this doesn't work when the file is clearly in the folder.  I have been trying and trying to learn how to program for windows 8 and this is the same error I received in other projects.  I can never find a sufficient answer.  To make it so bad, the error is also contained in a downloaded project from a book that I purchased.  So this experienced developer who wrote a book has errors in his project, wow unbelievable.  Learning this is like an hump that I can never get over.  For over six months I have been trying different sources to get my app done and I feel like I'm just chasing my tail.  Please help me.!!!!


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>