mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-03-31 00:22:09 +00:00
implement right click logic
- right click clears selection and only selects right clicked app
This commit is contained in:
parent
52de4690ab
commit
8daaf5e060
@ -27,6 +27,13 @@ function Initialize-InstallAppEntry {
|
||||
$border.Tag = $Appkey
|
||||
$border.ToolTip = $App.description
|
||||
$border.Add_MouseUp({
|
||||
if ($_.ChangedButton -eq [System.Windows.Input.MouseButton]::Left) {
|
||||
$childCheckbox = ($this.Child.Children | Where-Object {$_.Template.TargetType -eq [System.Windows.Controls.Checkbox]})[0]
|
||||
$childCheckBox.isChecked = -not $childCheckbox.IsChecked
|
||||
}
|
||||
})
|
||||
$border.Add_MouseRightButtonUp({
|
||||
Invoke-WPFPresets -imported $true -checkboxfilterpattern "WPFInstall*";
|
||||
$childCheckbox = ($this.Child.Children | Where-Object {$_.Template.TargetType -eq [System.Windows.Controls.Checkbox]})[0]
|
||||
$childCheckBox.isChecked = -not $childCheckbox.IsChecked
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user