tags:

views:

27

answers:

2

How do I block main navigation on (mainpage.xaml) as in all silverlight navigation application and block page's controls ( i.e whichever page is it in ) during async webservice calls? Any best practices?

+1  A: 

Make a Please Wait modal dialog on your mainpage. Open it before you make a webservice call, close it in the your webservice call response handler.

BigChrisDiD
i think you are right , but how will i access "Please Wait modal dialog "from my viewmodel ?secondly do you think it's a good idea to block the page during service calls ? since we still have back and forward browser button in browser(i am using navigation) , user can still abuse my application . what do you say ?
Muhammad Jamal Shaikh
+2  A: 

BusyIndicator from Silverlight Toolkit.

PL
+1 for Busy Indicator. Just wrap a BusyIndicator around your whole control, before the WS call, set IsBusy = true, when the call returns set IsBusy = false. It's easy and beautiful. You'll love it.
routeNpingme
no i said the whole page .
Muhammad Jamal Shaikh
You can block the whole page with BusyIndicator as well.
PL