mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-05 20:44:55 -06:00
9b87edc10b
Added an minimize and maximize button to the main window
11 lines
372 B
PowerShell
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
|
|
}
|
|
} |