In a bootstrapper, I have two views. Using the IRegionManager, I navigate between the first and the second view.
The first view contains a search box. The user types a string, clicks search. The first view passes the string over to the second view. The second view uses this string to call a service to get a list of items.
Everything works fine so far, but I would like to make this async that (also adding a ProgressIndicator). That is I do not want the application to lock when the user click on the search button.
I want the application to behave like so:
- The user enters a search string, and clicks on search (I have implemented.)
- The user should remain on the first view with the progress bar made visible (I have implemented.)
- In the background the search should be making a async call to the DB. (Implemented)
- Once the result is back from the service, the view should change to the second view with the result. (I have not been able to implement this)
How do I implement step 4 behavior?