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

Welcome Forums General PowerShell Q&A 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

 
Participant
1 year, 10 months ago.

  • Author
    Posts
  • #63967

    Participant
    Points: 0
    Rank: Member

    $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

    Participant
    Points: 21
    Rank: Member

    Post the full code.

The topic ‘How would I go about getting these GUI variables into a hash table?’ is closed to new replies.