diff --git a/functions/public/Invoke-WPFUIElements.ps1 b/functions/public/Invoke-WPFUIElements.ps1 index 6049864f..d5f985c8 100644 --- a/functions/public/Invoke-WPFUIElements.ps1 +++ b/functions/public/Invoke-WPFUIElements.ps1 @@ -25,7 +25,7 @@ function Invoke-WPFUIElements { [Parameter(Mandatory)] [int]$columncount - ) + ) $theme = $sync.configs.themes.$ctttheme diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 32a1eb96..0797f54a 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -96,8 +96,8 @@ Invoke-WPFUIElements -configVariable $sync.configs.feature -targetGridName "feat $xaml.SelectNodes("//*[@Name]") | ForEach-Object {$sync["$("$($psitem.Name)")"] = $sync["Form"].FindName($psitem.Name)} $sync.keys | ForEach-Object { - if($sync.$psitem){ - if($($sync["$psitem"].GetType() | Select-Object -ExpandProperty Name) -eq "ToggleButton"){ + if($sync.$psitem) { + if($($sync["$psitem"].GetType() | Select-Object -ExpandProperty Name) -eq "ToggleButton") { $sync["$psitem"].Add_Click({ [System.Object]$Sender = $args[0] Invoke-WPFButton $Sender.name diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml index b4199b76..6b6725f1 100644 --- a/xaml/inputXML.xaml +++ b/xaml/inputXML.xaml @@ -790,7 +790,7 @@ - +