title: Inherited Window can not have a name?
body: <p>I'm having trouble with naming my Window which is inherited from its Base Window,
  when I try to give a name to my Window I get following error.</p>
  
  <blockquote>
    <p>The type BaseWindow cannot have a Name attribute. Values types and types without a default constructor can be used as items within ResourceDictionary. </p>
  </blockquote>
  
  <p><strong>XAML :</strong> </p>
  
  <pre><code>&lt;log:BaseWindow 
     x:Class="EtraabMessenger.MainWindow"
     x:Name="main"
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
     xmlns:log="clr-namespace:EtraabMessenger.MVVM.View.Controls" 
     xmlns:VMCore="clr-namespace:EtraabMessenger.MVVM.VMCore" 
     VMCore:WindowClosingBehavior.Closing="{Binding DoCloseMainWindowCommand}"
     Height="464" Width="279"&gt;
  
  &lt;/log:BaseWindow&gt;
  </code></pre>
  
  <p><strong>EDIT</strong> : Here is my BaseWindow class</p>
  
  <pre><code>public abstract class BaseWindow : Window, INotifyPropertyChanged
  {
      protected BaseWindow()
      {
          // Note (Important) : This message should register on all windows
          // TODO : I'm planning to move this registeration to BaseWindow class
          Messenger.Register&lt;bool&gt;(GeneralToken.ClientDisconnected, DisconnectFromServer);
      }
  
      protected abstract void DisconnectFromServer(bool isDisconnected);
      protected abstract void RegisterTokens();
      protected abstract void UnRegisterTokens();
  
      ....
      ....
      ....
  
  }
  </code></pre>
  
  <p>Any advice will be helpful.</p>