From d4999a1c5b7e6072642f8956e8e7f1aa38ab1ce0 Mon Sep 17 00:00:00 2001 From: Kristen Schau <47155823+krschau@users.noreply.github.com> Date: Mon, 30 Sep 2024 11:40:11 -0400 Subject: [PATCH] Cleanup/prepare xaml pages for additional changes --- .../Views/ExperimentalFeaturesPage.xaml | 3 +- .../ViewModels/LandingPageViewModel.cs | 6 + .../Views/LandingPage.xaml | 25 ++- .../Views/LandingPage.xaml.cs | 8 - .../DevHome.SetupFlow/Views/MainPageView.xaml | 205 +++++++++--------- 5 files changed, 134 insertions(+), 113 deletions(-) diff --git a/settings/DevHome.Settings/Views/ExperimentalFeaturesPage.xaml b/settings/DevHome.Settings/Views/ExperimentalFeaturesPage.xaml index 48eb1502e7..9512e0102a 100644 --- a/settings/DevHome.Settings/Views/ExperimentalFeaturesPage.xaml +++ b/settings/DevHome.Settings/Views/ExperimentalFeaturesPage.xaml @@ -18,7 +18,8 @@ - + diff --git a/tools/Environments/DevHome.Environments/ViewModels/LandingPageViewModel.cs b/tools/Environments/DevHome.Environments/ViewModels/LandingPageViewModel.cs index 0786b1eba9..6972b7bb76 100644 --- a/tools/Environments/DevHome.Environments/ViewModels/LandingPageViewModel.cs +++ b/tools/Environments/DevHome.Environments/ViewModels/LandingPageViewModel.cs @@ -130,6 +130,12 @@ public void Initialize(StackedNotificationsBehavior notificationQueue) _notificationsHelper = new(notificationQueue); } + [RelayCommand] + private async Task OnLoadedAsync() + { + await LoadModelAsync(); + } + [RelayCommand] public async Task SyncButton() { diff --git a/tools/Environments/DevHome.Environments/Views/LandingPage.xaml b/tools/Environments/DevHome.Environments/Views/LandingPage.xaml index dfd7ed8b49..8c25fb0ac3 100644 --- a/tools/Environments/DevHome.Environments/Views/LandingPage.xaml +++ b/tools/Environments/DevHome.Environments/Views/LandingPage.xaml @@ -14,12 +14,18 @@ xmlns:winUIBehaviors="using:CommunityToolkit.WinUI.Behaviors" xmlns:converters="using:CommunityToolkit.WinUI.Converters" xmlns:views="using:DevHome.Common.Views" - behaviors:NavigationViewHeaderBehavior.HeaderMode="Never" - Loaded="OnLoaded"> + behaviors:NavigationViewHeaderBehavior.HeaderMode="Never"> + + + + + + + @@ -31,7 +37,6 @@ - @@ -196,7 +201,8 @@ - @@ -235,7 +241,13 @@ - + - + - + @@ -61,7 +61,7 @@