mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 17:41:14 +10:00
Add maximaze button (#4841)
* Add maximize button logic and update assets * Add maximize button with theming * delelte logo * Center and restyle the window control buttons * Fix window state test setup --------- Co-authored-by: aran628 <aran2014+@gmail.com> Co-authored-by: Chris Titus <contact@christitus.com>
This commit is contained in:
co-authored by
aran628
Chris Titus
parent
822003d87f
commit
13a18eeeb2
@@ -87,6 +87,13 @@ function Invoke-WPFButton {
|
||||
}
|
||||
"WPFCloseButton" {$sync.Form.Close(); Write-Host "Bye bye!"}
|
||||
"WPFMinimizeButton" {$sync.Form.WindowState = [Windows.WindowState]::Minimized}
|
||||
"WPFMaximizeButton" {
|
||||
if ($sync.Form.WindowState -eq [Windows.WindowState]::Normal) {
|
||||
$sync.Form.WindowState = [Windows.WindowState]::Maximized
|
||||
} else {
|
||||
$sync.Form.WindowState = [Windows.WindowState]::Normal
|
||||
}
|
||||
}
|
||||
"WPFselectedAppsButton" {$sync.selectedAppsPopup.IsOpen = -not $sync.selectedAppsPopup.IsOpen}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user