ToggleButtonStyle animation

- add hover animation to white dot
- remove IsPressed trigger
- improve some comments
This commit is contained in:
MyDrift
2024-10-27 12:59:40 +01:00
parent 402082b376
commit f04b52d0db
2 changed files with 56 additions and 24 deletions

View File

@ -315,12 +315,12 @@ function Invoke-WPFUIApps {
$childCheckBox.isChecked = -not $childCheckbox.IsChecked
})
$border.Add_MouseEnter({
if (($sync.$($this.Tag).IsChecked) -eq $false){
if (($sync.$($this.Tag).IsChecked) -eq $false) {
$this.SetResourceReference([Windows.Controls.Control]::BackgroundProperty, "AppInstallHighlightedColor")
}
})
$border.Add_MouseLeave({
if (($sync.$($this.Tag).IsChecked) -eq $false){
if (($sync.$($this.Tag).IsChecked) -eq $false) {
$this.SetResourceReference([Windows.Controls.Control]::BackgroundProperty, "AppInstallUnselectedColor")
}
})