title: Proplems due to Copying a WPF Solution - InitializeComponent() not found
body: <p>I have a <strong>Working</strong> and <strong>Compileable</strong> WPF-Solution in a which I needed to copy to another directory. </p>
  
  <p><em>Now I experience the following Problem, which I nowhere found similar on the web:</em></p>
  
  <p>In some Projects every <code>UserControl</code> I created, isnt compileable anymore. Somehow Terms like <code>DataContext</code> or <code>InitializeComponent()</code> <em>"do not exist in the current context"</em>. </p>
  
  <p>Usually this is a case of wrong namespaces, or classnaming between the <strong>xaml</strong> and <strong>xaml.cs</strong>. As my code is all compileable in the original repo, this can not be the case. I've also checked that <strong>build action</strong> is set to <strong>Page</strong>, which is also a common issue in this case.</p>
  
  <p>As I've found out, even newly created UserControls have the same problems. So I compared the projectfiles from the source and targed destination, which seemed to have no difference at all.</p>
  
  <p>At this point I'll ask the community. Have you ever experienced a similar problem? What do you think i could check, too?</p>
  
  <p>Thanks alot.</p>