title: wpf user control base class problem
body: <p>I am new to WPF and have created a WPF User Control Library</p>
  
  <p>I added a Base class that looks like this</p>
  
  <pre><code>public class TControl : UserControl
  {
  }
  </code></pre>
  
  <p>and want all of my controls to inherit from it.</p>
  
  <p>I have a Control called Notification which looks like</p>
  
  <pre><code>public partial class Notification : TControl
  {
      public Notification()
      {
          InitializeComponent();
      }
  </code></pre>
  
  <p>Works fine except when ever i recompile the hidden partial class where  InitializeComponent() is defined gets regenerated and inherits from System.Windows.Controls.UserControl</p>
  
  <p>this gives me an </p>
  
  <blockquote>
    <p>Partial declarations of 'Twac.RealBoss.UserControls.Notification' must not specify different base classes</p>
  </blockquote>
  
  <p>error,</p>
  
  <p>is there anyway to force the generated class to inherit from my base class?</p>