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 Profile photo of Dan Potter Dan Potter 5 months, 1 week ago.

  • Author
    Posts
  • #63967
    Profile photo of Poseyj
    Poseyj
    Participant

    $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
    Profile photo of Dan Potter
    Dan Potter
    Participant

    Post the full code.

You must be logged in to reply to this topic.