From c765ffb317bc2406de26b4d08d754554f4904191 Mon Sep 17 00:00:00 2001
From: Sree Sankar S <100954808+sreesankar711@users.noreply.github.com>
Date: Tue, 19 May 2026 23:56:54 +0530
Subject: [PATCH] Add minimize button to WinUtil window (#4508)
---
functions/public/Invoke-WPFButton.ps1 | 1 +
xaml/inputXML.xaml | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/functions/public/Invoke-WPFButton.ps1 b/functions/public/Invoke-WPFButton.ps1
index b0bc813a..5436d3d9 100644
--- a/functions/public/Invoke-WPFButton.ps1
+++ b/functions/public/Invoke-WPFButton.ps1
@@ -65,6 +65,7 @@ function Invoke-WPFButton {
"WPFGetInstalled" {Invoke-WPFGetInstalled -CheckBox "winget"}
"WPFGetInstalledTweaks" {Invoke-WPFGetInstalled -CheckBox "tweaks"}
"WPFCloseButton" {$sync.Form.Close(); Write-Host "Bye bye!"}
+ "WPFMinimizeButton" {$sync.Form.WindowState = [Windows.WindowState]::Minimized}
"WPFselectedAppsButton" {$sync.selectedAppsPopup.IsOpen = -not $sync.selectedAppsPopup.IsOpen}
"WPFToggleFOSSHighlight" {
if ($sync.WPFToggleFOSSHighlight.IsChecked) {
diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml
index 8148adfd..1a9245c1 100644
--- a/xaml/inputXML.xaml
+++ b/xaml/inputXML.xaml
@@ -1186,6 +1186,16 @@
+
+