I have an WPF application using the MVVM design property. There is a long running process to populate a grid that I would like to show a busy cursor for. I have the part changing the cursor working. The problem I have is that the cursor is bound to a bool called IsBusy. When the method is called that runs for awhile I set IsBusy to true and when the method is complete I set it back to false.
public void LongProcedure(){
IsBusy=true;
... long running code here
IsBusy=false;
}
`
I know the cursor binding to IsBusy is working because I tested it out with another procedure that does
IsBusy=!IsBusy;
And that does toggle the cursor. The problem I am having is that the view doesn't appear to refresh while the code in the method is running. Is there a way to force the view to refesh after I set IsBusy to true?