title: Changing from WPF User Control to Window?
body: <p>I've been working on a commandline application, and have recently decided to add a wpf window to the application.  I added this as a UserControl, however I noticed I can't call this class using ShowDialog() from my main code;</p>
  
  <p>I've tried changing the Base class from a UserControl to Window, however an error occurs;</p>
  
  <pre><code>public partial class UserControl1 : Window
      {
          public UserControl1()
          {
              InitializeComponent();
          }
  </code></pre>
  
  <blockquote>
    <p>Error 1   Partial declarations of
    'ExcelExample.UserControl1' must not
    specify different base
    classesExcelExample</p>
  </blockquote>
  
  <p>I've added all the references found in my other WPF application to no avail.  Help!</p>