I deleted the CodeBehind of my MainWindow.xaml, cause I'm doing a small project where I literally must do that.
So I'm creating an instance of my ViewModel in this way over xaml:
<Grid.DataContext>
<lib:StartPageViewModel />
</Grid.DataContext>
Well now, I need this DataContext
in my Code (StartPageViewModel), as I want to open an other solution (For more Informations take a look here).
Any Ideas, on how I can get this DataContext?