title: getting an error on InitializeComponent() on xaml.cs files
body: <p>I will sometimes get a red error that says:</p>
  
  <blockquote>
    <p>InitializeComponent does not exist in the current context</p>
  </blockquote>
  
  <p>Along with the other variables that I have in my <code>.xaml</code> that are bound by <code>x:Name</code>. The <code>x:Class</code> in the Xaml file does correspond to the namespace and class name in my <code>xaml.cs</code> file. </p>
  
  <p>The build action for my xaml file is set to "Embedded Resource" and the build action for my <code>xaml.cs</code> file is set to "Compile". The error only appears randomly and the project runs like normal even with the red errors. I am developing on windows 8.1 with Visual Studio with Xamarin. </p>
  
  <p>Even though the code runs, I would like to not see those errors appear. Is there any reason why this is happening? </p>