Working on my first "real" WPF app ... it's a utility that will help us (me) create our deployment structure faster by automating a bunch of tedious tasks that are prone to errors. It has to create a directory structure, then copy a bunch of files around. As part of this, I'd like it to report its progress as it creates the folders and copies the files. So, as it goes through each step, I have it displying the current status to a ListView (I realyl should change it to a listbox, as the reason for the listview is no longer valid). I've got it working for the most part.... except for one thing. After the user (that's me) clicks the button, it "hangs" for a few seconds while the process runs. Since speed isn't of the essence here, normally in a windows app, after posting the status to the listview, I'd issue a DoEvents to give the system a chance to refresh the screen, and I'd go on my merry way. However, DoEvents doesn't exist in the WPF realm... and there doesn't appear to be a Refresh method on the listview or form.... so.....

What do I need to do to get the display to update? Do I need to sacrifice an animal to the WPF gods in the MS Temple in Redmond? Or is there something I'm missing? Eventually, I'd also like to add a progress bar, so it would be really nice if the display didn't lock itself up.

-tg