I have a WPF list view associated with a list of objects. One of the items displayed is a computed property (read-only, returns a string), which takes a small amount of time to calculate. When the window initially loads (or at any time when the user interface is updated with the Notify event), the user interface will freeze when data binding occurs. What I was interested in was a good mechanism to solve this problem (ideally, I would like to do something to align the screen with the counter and the text "Processing ..." or similar).
I thought I could do this by starting the start of the event with a database binding and releasing a story (or similar) and stopping the story when the end of the data binding event was completed, but I cannot find events of this nature.
Is there a recommended mechanism for working with long data bindings or for events I'm looking for, but I'm looking for the wrong location? Any help would be appreciated.
EDIT: I can get the rotation icon (Cursor.Wait) while the data is received and bound to the data (using the parts of the solution below), but now I need to know when the data binding is complete. The .Loaded event seems to fire when the control is placed on the screen (which happens immediately), but does not occur when the data is updated. It seems that there is no event like OnDataBoundCompleted for ListView, any ideas / thoughts on how to receive notifications when the data binding process is completed?
EDIT: Now, let's look at TargetUpdated, but get some odd results. If I put a message box in the event handler for TargetUpdated, then the user interface will be updated (ListView will display the data) and then a message box will appear. If I cut out the message box and just had a variable parameter (i.e.IsBusyCursor = Cursors.Arrow), it does this before the ListView displays the data.
** : ** Cursor = Wait, , ListView, ( ) , ListView Stet Cursor = Arrow. , , DataBinding Completed ( - , , ), .