title: Subclassing WPF Window
body: <p>I created a WPF Window</p>
  
  <p>than i modified its class definition to:</p>
  
  <pre><code>public partial class myWindow : mySubclassedWindow
  </code></pre>
  
  <p>compiler throws:</p>
  
  <p><strong><em>"Partial declarations of 'myWindow' must not specify different base classes"</em></strong></p>
  
  <p>myWindow.Xaml:</p>
  
  <pre><code>x:Class="WpfGridtest.myWindow"
  </code></pre>
  
  <p>so somewhere, there is another partial class, that inherits from "Window" but i cannot find it. How can i override my case to use subclassed window? </p>
  
  <hr>
  
  <p>thanks Jon, that was the problem. 
  also found this helpful article:
  <a href="http://geekswithblogs.net/lbugnion/archive/2007/03/02/107747.aspx" rel="noreferrer">http://geekswithblogs.net/lbugnion/archive/2007/03/02/107747.aspx</a></p>