winutil/functions/public/Invoke-WPFMaximizeButton.ps1
Yuri Gabriel 9b87edc10b Add minimize and maximize button
Added an minimize and maximize button to the main window
2024-02-09 22:09:31 -03:00

11 lines
372 B
PowerShell

function Invoke-WPFMaximizeButton {
<#
.SYNOPSIS
Alternates between Maximized and Minimized window
#>
if ($sync["Form"].WindowState -eq [System.Windows.WindowState]::Maximized) {
$sync["Form"].WindowState = [System.Windows.WindowState]::Normal
} else {
$sync["Form"].WindowState = [System.Windows.WindowState]::Maximized
}
}