Heredada ventana no puede tener un nombre?
Tengo problemas para nombrar mi ventana que se hereda de su ventana base. Cuando intento dar un nombre a mi ventana, aparece el siguiente error.
El tipo BaseWindow no puede tener un atributo de Nombre. Los tipos de valores y los tipos sin un constructor predeterminado se pueden usar como elementos dentro de ResourceDictionary.
XAML:
<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">
</log:BaseWindow>
EDITAR : Aquí está mi clase de BaseWindow
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<bool>(GeneralToken.ClientDisconnected, DisconnectFromServer);
}
protected abstract void DisconnectFromServer(bool isDisconnected);
protected abstract void RegisterTokens();
protected abstract void UnRegisterTokens();
....
....
....
}
Cualquier consejo será de ayuda.