diff --git a/tools/SetupFlow/DevHome.SetupFlow/Models/CloningInformation.cs b/tools/SetupFlow/DevHome.SetupFlow/Models/CloningInformation.cs
index a88c3c2d62..15eed1ca75 100644
--- a/tools/SetupFlow/DevHome.SetupFlow/Models/CloningInformation.cs
+++ b/tools/SetupFlow/DevHome.SetupFlow/Models/CloningInformation.cs
@@ -216,6 +216,14 @@ public string EditClonePathAutomationName
get; set;
}
+ ///
+ /// Gets or sets the string that the narrator should say when the repo is selected in the config screen.
+ ///
+ public string RepoConfigAutomationName
+ {
+ get; set;
+ }
+
///
/// Gets or sets the name of the button that allows a user to remove the repository from being cloned.
/// This name can't be static because each button name needs to be unique. Because each name needs to be unique
diff --git a/tools/SetupFlow/DevHome.SetupFlow/ViewModels/AddRepoViewModel.cs b/tools/SetupFlow/DevHome.SetupFlow/ViewModels/AddRepoViewModel.cs
index a73cc95ec2..1e96653859 100644
--- a/tools/SetupFlow/DevHome.SetupFlow/ViewModels/AddRepoViewModel.cs
+++ b/tools/SetupFlow/DevHome.SetupFlow/ViewModels/AddRepoViewModel.cs
@@ -445,6 +445,44 @@ private void RepoProviderSelected(string repositoryProviderName)
_selectedRepoProvider = repositoryProviderName;
}
+ ///
+ /// Adds or removes the default dev drive. This dev drive will be made at the loading screen.
+ ///
+ [RelayCommand]
+ private void MakeNewDevDrive(bool isCheckBoxChecked)
+ {
+ // Getting here means
+ // 1. The user does not have any existing dev drives
+ // 2. The user wants to clone to a new dev drive.
+ // 3. The user un-checked this and does not want a new dev drive.
+ if (isCheckBoxChecked)
+ {
+ UpdateDevDriveInfo();
+ }
+ else
+ {
+ FolderPickerViewModel.CloneLocationAlias = string.Empty;
+ FolderPickerViewModel.InDevDriveScenario = false;
+ EditDevDriveViewModel.RemoveNewDevDrive();
+ FolderPickerViewModel.EnableBrowseButton();
+ FolderPickerViewModel.CloneLocation = _addRepoDialog.OldCloneLocation;
+ }
+ }
+
+ ///
+ /// Update dialog to show Dev Drive information.
+ ///
+ public void UpdateDevDriveInfo()
+ {
+ EditDevDriveViewModel.MakeDefaultDevDrive();
+ FolderPickerViewModel.DisableBrowseButton();
+ _addRepoDialog.OldCloneLocation = FolderPickerViewModel.CloneLocation;
+ FolderPickerViewModel.CloneLocation = EditDevDriveViewModel.GetDriveDisplayName();
+ FolderPickerViewModel.CloneLocationAlias = EditDevDriveViewModel.GetDriveDisplayName(DevDriveDisplayNameKind.FormattedDriveLabelKind);
+ FolderPickerViewModel.InDevDriveScenario = true;
+ EditDevDriveViewModel.IsDevDriveCheckboxChecked = true;
+ }
+
[RelayCommand]
private void CancelButtonPressed()
{
@@ -1066,6 +1104,7 @@ public void AddOrRemoveRepository(string accountName, IList
- private string _oldCloneLocation;
+ public string OldCloneLocation { get; set; }
public AddRepoDialog(
SetupFlowOrchestrator setupFlowOrchestrator,
@@ -222,30 +222,6 @@ private async void AddRepoContentDialog_PrimaryButtonClick(ContentDialog sender,
}
}
- ///
- /// Adds or removes the default dev drive. This dev drive will be made at the loading screen.
- ///
- private void MakeNewDevDriveCheckBox_Click(object sender, RoutedEventArgs e)
- {
- // Getting here means
- // 1. The user does not have any existing dev drives
- // 2. The user wants to clone to a new dev drive.
- // 3. The user un-checked this and does not want a new dev drive.
- var isChecked = (sender as CheckBox).IsChecked;
- if (isChecked.Value)
- {
- UpdateDevDriveInfo();
- }
- else
- {
- AddRepoViewModel.FolderPickerViewModel.CloneLocationAlias = string.Empty;
- AddRepoViewModel.FolderPickerViewModel.InDevDriveScenario = false;
- AddRepoViewModel.EditDevDriveViewModel.RemoveNewDevDrive();
- AddRepoViewModel.FolderPickerViewModel.EnableBrowseButton();
- AddRepoViewModel.FolderPickerViewModel.CloneLocation = _oldCloneLocation;
- }
- }
-
///
/// Putting the event in the view so SelectRange can be called.
/// SelectRange needs a reference to the ListView.
@@ -262,20 +238,6 @@ private void FilterTextBox_TextChanged(object sender, TextChangedEventArgs e)
}
}
- ///
- /// Update dialog to show Dev Drive information.
- ///
- public void UpdateDevDriveInfo()
- {
- AddRepoViewModel.EditDevDriveViewModel.MakeDefaultDevDrive();
- AddRepoViewModel.FolderPickerViewModel.DisableBrowseButton();
- _oldCloneLocation = AddRepoViewModel.FolderPickerViewModel.CloneLocation;
- AddRepoViewModel.FolderPickerViewModel.CloneLocation = AddRepoViewModel.EditDevDriveViewModel.GetDriveDisplayName();
- AddRepoViewModel.FolderPickerViewModel.CloneLocationAlias = AddRepoViewModel.EditDevDriveViewModel.GetDriveDisplayName(DevDriveDisplayNameKind.FormattedDriveLabelKind);
- AddRepoViewModel.FolderPickerViewModel.InDevDriveScenario = true;
- AddRepoViewModel.EditDevDriveViewModel.IsDevDriveCheckboxChecked = true;
- }
-
private void FilterSuggestions(AutoSuggestBox sender, AutoSuggestBoxTextChangedEventArgs args)
{
sender.ItemsSource = _searchFieldsAndValues[sender.Header.ToString()].Where(x => x.Contains(sender.Text));
diff --git a/tools/SetupFlow/DevHome.SetupFlow/Views/MainPageView.xaml b/tools/SetupFlow/DevHome.SetupFlow/Views/MainPageView.xaml
index 8d3a4ff698..14e994a4e4 100644
--- a/tools/SetupFlow/DevHome.SetupFlow/Views/MainPageView.xaml
+++ b/tools/SetupFlow/DevHome.SetupFlow/Views/MainPageView.xaml
@@ -19,7 +19,16 @@
32
-
+
@@ -87,19 +96,21 @@
BackgroundSource="{ThemeResource Setup_Banner_Back}"
OverlaySource="{ThemeResource Setup_Banner_Front}" />
-
+
-
-
+
+
+
-
+
@@ -163,15 +175,16 @@
-
+
@@ -179,78 +192,83 @@
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
+
+
+
+
+
+
+
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tools/SetupFlow/DevHome.SetupFlow/Views/RepoConfigView.xaml b/tools/SetupFlow/DevHome.SetupFlow/Views/RepoConfigView.xaml
index bc0eba44a6..9fc152c56d 100644
--- a/tools/SetupFlow/DevHome.SetupFlow/Views/RepoConfigView.xaml
+++ b/tools/SetupFlow/DevHome.SetupFlow/Views/RepoConfigView.xaml
@@ -94,7 +94,7 @@
-
+
diff --git a/tools/SetupFlow/DevHome.SetupFlow/Views/RepoConfigView.xaml.cs b/tools/SetupFlow/DevHome.SetupFlow/Views/RepoConfigView.xaml.cs
index c0a90a74a3..350fdc2df8 100644
--- a/tools/SetupFlow/DevHome.SetupFlow/Views/RepoConfigView.xaml.cs
+++ b/tools/SetupFlow/DevHome.SetupFlow/Views/RepoConfigView.xaml.cs
@@ -72,7 +72,7 @@ private async Task AddRepoAsync()
if (_addRepoDialog.AddRepoViewModel.EditDevDriveViewModel.CanShowDevDriveUI && ViewModel.ShouldAutoCheckDevDriveCheckbox)
{
- _addRepoDialog.UpdateDevDriveInfo();
+ _addRepoDialog.AddRepoViewModel.UpdateDevDriveInfo();
}
_addRepoDialog.IsSecondaryButtonEnabled = true;