Here's my NewWin Class inherited from Window (System.Windows.Window) Class.
public partial class NewWin : Window
{
public NewWin()
{
this.Background = new SolidColorBrush(Color.FromRgb(0, 0, 0));
}
}
And my MainWindow (WPF's Default) inherited from NewWin instead of Window.
public partial class MainWindow : NewWin
{
public MainWindow()
{
InitializeComponent();
}
}
Upon compilation there is an error message writing as followed:
Partial declarations of 'Test.MainWindow' must not specify different base classes
With 'Test' being the name of my project.