title: Why can't Visual Studio find my WPF InitializeComponent method?
body: <p>This is very strange.</p>
  
  <p>I have an <a href="http://en.wikipedia.org/wiki/Extensible_Application_Markup_Language" rel="noreferrer">XAML</a> file that looks as follows...</p>
  
  <pre><code>&lt;Window
      x:Name="window"
      x:Class="ix.Production.Title"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="Title" Height="768" Width="1024"
      Loaded="window_Loaded"&gt;
  
      &lt;Window.Resources&gt;
     etc...
  </code></pre>
  
  <p>And my code-beside that looks as follows...</p>
  
  <pre><code>using System;
  using System.Windows;
  using System.Windows.Media.Animation;
  using System.Threading;
  
  namespace ix.Production
  {
      public partial class Title : Window
      {
          public Title()
          {
             InitializeComponent();
          }
      ....
  </code></pre>
  
  <p>This code refuses to compile because Visual Studio insists that the InitializeComponent "does not exist in the current context."</p>
  
  <p>How can I fix this problem?</p>