Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

PowerShell GUI WPF/Xaml: Need help updating the form in real-time

$
0
0

I've been banging my head on this for a bit, and Google gives me just enough to frustrate me without actually showing me a solution that works, so here goes:

I've built a WPF/Xaml based GUI for my Office 365 distribution group creation script to give to my techs; it was a lot of fun, I learned a lot, and it works great. The last part would change the output from showing up in the PowerShell window that they launched the script in to showing the output in a text box field on the form itself. Here's where the problem starts: the text box shows the output fine, but it doesn't show any output until all execution is stopped. This is a problem because there are times that the form will appear to freeze while it's doing work, and I want it to show output so the user can see that progress is happening, and where the program is at.

I've learned...


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>