diff --git a/functions/private/Get-TabXaml.ps1 b/functions/private/Get-TabXaml.ps1 index bda4d836..b70363c1 100644 --- a/functions/private/Get-TabXaml.ps1 +++ b/functions/private/Get-TabXaml.ps1 @@ -77,9 +77,12 @@ function Get-TabXaml { $panelcount++ } } + + # Dot-source the Get-WPFObjectName function + . .\functions\private\Get-WPFObjectName + $categorycontent = $($category -replace '^.__', '') - # Remove all special Characters from the name because it will later be used as a Powershell Variable - $categoryname = "WPFLabel"+$($categorycontent -replace '[^a-zA-Z0-9]','') + $categoryname = Get-WPFObjectName -type "Label" -name $categorycontent $blockXml += "