Author Posts

February 10, 2017 at 7:27 pm

$xaml contains all the GUI info. I'd like this:

$xaml.SelectNodes("//*[@Name]") | %{Set-Variable -Name "WPF$($_.Name)" -Value $Form.FindName($_.Name)} # WPFTextbox1 etc,

to fit in here $GUIhash = [hashtable]::Synchronized(@{})

So I can reference GUI objects from within a runspace. How would I go about this?

February 11, 2017 at 12:56 pm

Post the full code.