title: WPF Base Window
body: <p>I would like to use a BaseWindow for other windows in WPF, but I'm getting errors that I don't know how to fix.</p>
  
  <p>I created a base class:</p>
  
  <pre><code>namespace Evolutio.FluXus.WPFApp
  {
      public partial class WindowBase : Window
      {
      }
  }
  </code></pre>
  
  <p>And changed my LoginView.xaml.cs:</p>
  
  <pre><code>public partial class LoginView : WindowBase, ITransientDependency
  {
      private readonly IUserAppService _userAppService;
  
      public LoginView(IUserAppService userAppService)
      {
          _userAppService = userAppService;
          InitializeComponent();
      }
      private void btnCancel_Click(object sender, RoutedEventArgs e)
      {
          this.Close();
      }
  }
  </code></pre>
  
  <p>And I'm getting an error in the <code>Close()</code> statement.</p>
  
  <p>Can anyone help me?</p>