How would I go about getting these GUI variables into a hash table?

This topic contains 1 reply, has 2 voices, and was last updated by  Dan Potter 1 year, 1 month ago.

  • Author
  • #63967


    $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?

  • #64000

    Dan Potter

    Post the full code.

You must be logged in to reply to this topic.