Wpf listview not updating


Sometime in the past, a friend asked me how to update a control to show status while his code is doing a loop of stuff.

wpf listview not updating-64

It also works well for updating progress bars when the percent changes.

The multithread method is great if you need to keep working inside the GUI while a long-running process does its thing, but where all you want is PROGRESS from a long-running task, this fills the bill like crazy! I've been searching for this for a bit now, and have finally found it!

Let's say you want the label to say "Save Started" //do save then "Sae Completed"? If I place your code inside, I get "Extension methods M/B defined in a top level static class; Extension Methods is a nested class". I wanted to say thanks then I saw all of these comments.

If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.

All I wanted was a dialog box to pop up and tell the user to be patient, so this suited the bill perfectly. The GUI is not rendered while the click handler for my button is running ~1-2 seconds. I have never been compelled to leave a comment before.