- tweak: Dependency injection think
This commit is contained in:
@@ -4,8 +4,16 @@ namespace Nebula.Launcher.Views;
|
||||
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
// This constructor is used when the view is created by the XAML Previewer
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
// This constructor is used when the view is created via dependency injection
|
||||
public MainWindow(MainView mainView)
|
||||
: this()
|
||||
{
|
||||
Content = mainView;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user