Skip to content

Commit 26b1896

Browse files
authored
Refactor MainWindow to remove ViewModel initialization
Removed DataContext assignment in MainWindow constructor.
1 parent eaf617a commit 26b1896

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

WPF/MainWindow.xaml.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using Graph_Database_WPF.ViewModels;
21
using System.Windows;
32

43
namespace Graph_Database_WPF
@@ -8,7 +7,6 @@ public partial class MainWindow : Window
87
public MainWindow()
98
{
109
InitializeComponent();
11-
DataContext = new MainViewModel();
1210
}
1311
}
14-
}
12+
}

0 commit comments

Comments
 (0)