mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 09:31:15 +10:00
Restore native window animations and custom caption hit testing (#4888)
* feat: restore native window animations * fix: disable native caption button hit testing * test: remove fake window state assertions
This commit is contained in:
@@ -85,12 +85,12 @@ function Invoke-WPFButton {
|
||||
}
|
||||
}
|
||||
"WPFCloseButton" {$sync.Form.Close(); Write-Host "Bye bye!"}
|
||||
"WPFMinimizeButton" {$sync.Form.WindowState = [Windows.WindowState]::Minimized}
|
||||
"WPFMinimizeButton" {[Windows.SystemCommands]::MinimizeWindow($sync.Form)}
|
||||
"WPFMaximizeButton" {
|
||||
if ($sync.Form.WindowState -eq [Windows.WindowState]::Normal) {
|
||||
$sync.Form.WindowState = [Windows.WindowState]::Maximized
|
||||
[Windows.SystemCommands]::MaximizeWindow($sync.Form)
|
||||
} else {
|
||||
$sync.Form.WindowState = [Windows.WindowState]::Normal
|
||||
[Windows.SystemCommands]::RestoreWindow($sync.Form)
|
||||
}
|
||||
}
|
||||
"WPFselectedAppsButton" {$sync.selectedAppsPopup.IsOpen = -not $sync.selectedAppsPopup.IsOpen}
|
||||
|
||||
Reference in New Issue
Block a user