diff --git a/functions/microwin/Invoke-Microwin.ps1 b/functions/microwin/Invoke-Microwin.ps1
index 68ccb1a5..d4b2bb33 100644
--- a/functions/microwin/Invoke-Microwin.ps1
+++ b/functions/microwin/Invoke-Microwin.ps1
@@ -472,7 +472,7 @@ public class PowerManagement {
}
}
- $sync.MicrowinOptionsPanel.Visibility = 'Collapsed'
+ Toggle-MicrowinPanel 1
#$sync.MicrowinFinalIsoLocation.Text = "$env:temp\microwin.iso"
$sync.MicrowinFinalIsoLocation.Text = "$($SaveDialog.FileName)"
diff --git a/functions/microwin/Invoke-MicrowinGetIso.ps1 b/functions/microwin/Invoke-MicrowinGetIso.ps1
index 01db0c18..ca96d6de 100644
--- a/functions/microwin/Invoke-MicrowinGetIso.ps1
+++ b/functions/microwin/Invoke-MicrowinGetIso.ps1
@@ -276,7 +276,8 @@ function Invoke-MicrowinGetIso {
Get-Volume $driveLetter | Get-DiskImage | Dismount-DiskImage
Write-Host "Selected value '$($sync.MicrowinWindowsFlavors.SelectedValue)'....."
- $sync.MicrowinOptionsPanel.Visibility = 'Visible'
+ Toggle-MicrowinPanel 2
+
} catch {
Write-Host "Dismounting bad image..."
Get-Volume $driveLetter | Get-DiskImage | Dismount-DiskImage
diff --git a/functions/microwin/Toggle-MicrowinPanel.ps1 b/functions/microwin/Toggle-MicrowinPanel.ps1
new file mode 100644
index 00000000..86ea6459
--- /dev/null
+++ b/functions/microwin/Toggle-MicrowinPanel.ps1
@@ -0,0 +1,28 @@
+function Toggle-MicrowinPanel {
+ <#
+ .SYNOPSIS
+ Toggles the visibility of the Microwin options and ISO panels in the GUI.
+ .DESCRIPTION
+ This function toggles the visibility of the Microwin options and ISO panels in the GUI.
+ .PARAMETER MicrowinOptionsPanel
+ The panel containing Microwin options.
+ .PARAMETER MicrowinISOPanel
+ The panel containing the Microwin ISO options.
+ .EXAMPLE
+ Toggle-MicrowinPanel 1
+ #>
+ param (
+ [Parameter(Mandatory = $true, Position = 0)]
+ [ValidateSet(1, 2)]
+ [int]$PanelNumber
+ )
+
+ if ($PanelNumber -eq 1) {
+ $sync.MicrowinISOPanel.Visibility = 'Visible'
+ $sync.MicrowinOptionsPanel.Visibility = 'Collapsed'
+
+ } elseif ($PanelNumber -eq 2) {
+ $sync.MicrowinOptionsPanel.Visibility = 'Visible'
+ $sync.MicrowinISOPanel.Visibility = 'Collapsed'
+ }
+}
diff --git a/functions/public/Invoke-WPFButton.ps1 b/functions/public/Invoke-WPFButton.ps1
index 34d789d5..140acecd 100644
--- a/functions/public/Invoke-WPFButton.ps1
+++ b/functions/public/Invoke-WPFButton.ps1
@@ -62,5 +62,6 @@ function Invoke-WPFButton {
"WPFWinUtilUninstallPSProfile" {Invoke-WinUtilUninstallPSProfile}
"WPFWinUtilSSHServer" {Invoke-WPFSSHServer}
"WPFselectedAppsButton" {$sync.selectedAppsPopup.IsOpen = -not $sync.selectedAppsPopup.IsOpen}
+ "WPFMicrowinPanelBack" {Toggle-MicrowinPanel 1}
}
}
diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml
index a747521d..9e60e29c 100644
--- a/xaml/inputXML.xaml
+++ b/xaml/inputXML.xaml
@@ -801,6 +801,7 @@
+
@@ -855,6 +856,7 @@
+
@@ -1259,7 +1261,7 @@
VerticalAlignment="Stretch"
HorizontalAlignment="Stretch">
-
+
Choose a Windows ISO file that you've downloaded
@@ -1314,8 +1316,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
Choose Windows SKU
@@ -1343,7 +1383,7 @@
Foreground="{DynamicResource LabelboxForegroundColor}"
MaxLength="20"
/>
- Password (characters will not be shown for your security):
+ Password: