C# Update Status Bar....
Posted on 2016-11-08
I am trying to update a user control status bar with text in WPF. This should be easy I was thinking then I am now trying it. I understand that I am in the UI context but have issues in making the update take place. At the end of the routine the status bar updates but that is no indicator since everything either failed or completed.
The primary issue is that there is a long winded routine based off of a click event. So this long process runs and during the course of that, we need to have it say "Copied your email" do more stuff... "Updated your directories" ....more stuff.... "etc."
Trying [STAThread] above the method and having a background worker was useless....(still not sure why that failed). After 100 iterations I am tired of this burning cycle and decide to ask for help.
If we can call a method UpdateStatus() which is responsive (updates the text in the status control) we are golden.
Thanks in advance!