RE: [scripting] [Powershell] updating WPF UI from a child runspace

2017-03-15 Thread Mote, Todd
I’ve seen some stuff about using an observable collection too, but I couldn’t find anything definitive. At this point I may just go back to process locked winforms, it’s almost not worth it. WPF looks so nice though… From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com]

Re: [scripting] [Powershell] updating WPF UI from a child runspace

2017-03-15 Thread Ryan
The most successful I've been with that in PowerShell was when I used the dispatcher timer to update the UI. The basic idea was to have a synchronized hash table that would exist between all the runspaces. I could then store information there for the UI elements and the dispatcher timer would

[scripting] [Powershell] updating WPF UI from a child runspace

2017-03-15 Thread Mote, Todd
Ok, have a WPF form. It looks pretty. It runs in its own runspace. Awesome. Now I'm trying to connect UI element actions output to the output box I've got. I can update the outputbox fine from the main UI runspace using a nice little function using the dispatcher. But as soon as I have an