Idk, dev work goin on
This commit is contained in:
@@ -26,11 +26,12 @@ public sealed partial class HomePage : Page
|
||||
{
|
||||
public HomeViewModel ViewModel { get; }
|
||||
|
||||
public HomePage()
|
||||
public HomePage() : this(App.Services.GetRequiredService<HomeViewModel>()) {}
|
||||
|
||||
public HomePage(HomeViewModel viewModel)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
ViewModel = App.Services.GetRequiredService<HomeViewModel>();
|
||||
ViewModel = viewModel;
|
||||
DataContext = ViewModel;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user