From ba968d0cb3b477bca26bbc77fb4c65465b80acf1 Mon Sep 17 00:00:00 2001
From: Marterich <47688561+Marterich@users.noreply.github.com>
Date: Mon, 14 Oct 2024 20:46:28 +0200
Subject: [PATCH] Style for Hidden Checkbox but visible Content
---
functions/public/Invoke-WPFUIApps.ps1 | 1 +
xaml/inputXML.xaml | 14 +++++++++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/functions/public/Invoke-WPFUIApps.ps1 b/functions/public/Invoke-WPFUIApps.ps1
index d47f8d0f..aada7d45 100644
--- a/functions/public/Invoke-WPFUIApps.ps1
+++ b/functions/public/Invoke-WPFUIApps.ps1
@@ -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
diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml
index bf496e8c..dca44327 100644
--- a/xaml/inputXML.xaml
+++ b/xaml/inputXML.xaml
@@ -366,6 +366,19 @@
+
+