Style for Hidden Checkbox but visible Content

This commit is contained in:
Marterich
2024-10-14 20:46:28 +02:00
parent 8d34e2fa30
commit ba968d0cb3
2 changed files with 14 additions and 1 deletions

View File

@ -284,6 +284,7 @@ function Invoke-WPFUIApps {
$checkBox.HorizontalAlignment = "Left"
$checkBox.VerticalAlignment = "Center"
$checkBox.Margin = New-Object Windows.Thickness(5, 0, 10, 0)
$checkBox.SetResourceReference([Windows.Controls.Control]::StyleProperty, "CollapsedCheckBoxStyle")
$checkbox.Add_Checked({
Invoke-WPFSelectedLabelUpdate -type "Add" -checkbox $this
$borderElement = $this.Parent.Parent