Code behind is partial declaration of your View and as evident from the error, you cannot specify different base classes for partial declaration of class.
In code behind you are deriving it from WindowBase
and in xaml you are declaring it to be MetroWindow
.
View declaration should be like <local:WindowBase..
where local will be namespace where WindowBase is declared ofcourse.