Idk, dev work goin on
This commit is contained in:
@@ -24,16 +24,15 @@ namespace WinWARP.Ui.Views;
|
||||
/// </summary>
|
||||
public sealed partial class SettingsPage : Page
|
||||
{
|
||||
public SettingsViewModel ViewModel
|
||||
{
|
||||
get;
|
||||
}
|
||||
public SettingsViewModel ViewModel { get; }
|
||||
|
||||
public SettingsPage()
|
||||
public SettingsPage() : this(App.Services.GetRequiredService<SettingsViewModel>()) {}
|
||||
|
||||
public SettingsPage(SettingsViewModel viewModel)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
ViewModel = App.Services.GetRequiredService<SettingsViewModel>();
|
||||
ViewModel = viewModel;
|
||||
DataContext = ViewModel;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user