mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-04 04:03:52 -05:00
fixed accidental removal of findname grid call
This commit is contained in:
@ -35,6 +35,8 @@ function Invoke-WPFUIElements {
|
||||
if (!$borderstyle -or !$HoverTextBlockStyle -or !$ColorfulToggleSwitchStyle) {
|
||||
throw "Failed to retrieve Styles using 'FindResource' from main window element."
|
||||
}
|
||||
|
||||
$targetGrid = $window.FindName($targetGridName)
|
||||
|
||||
if (!$targetGrid) {
|
||||
throw "Failed to retrieve Target Grid by name, provided name: $targetGrid"
|
||||
|
Reference in New Issue
Block a user