From 0ec64eaf744bd2347a0421351152114ce5be35fb Mon Sep 17 00:00:00 2001 From: Martin Wiethan <47688561+Marterich@users.noreply.github.com> Date: Tue, 4 Jun 2024 06:05:28 +0200 Subject: [PATCH] Optimize Display Behaviour of Category Labels (#1979) * Hide Category title if empty * Changed labels to a hashtable for faster access * Extract WPFNamecreation to function, fix hide all if none match --- functions/private/Get-TabXaml.ps1 | 8 ++++++- functions/private/Get-WPFObjectName.ps1 | 27 ++++++++++++++++++++++++ scripts/main.ps1 | 28 +++++++++++++++++++++++-- 3 files changed, 60 insertions(+), 3 deletions(-) create mode 100644 functions/private/Get-WPFObjectName.ps1 diff --git a/functions/private/Get-TabXaml.ps1 b/functions/private/Get-TabXaml.ps1 index 135039e1..9caf2e9b 100644 --- a/functions/private/Get-TabXaml.ps1 +++ b/functions/private/Get-TabXaml.ps1 @@ -77,7 +77,13 @@ function Get-TabXaml { $panelcount++ } } - $blockXml += "