Silverlight page level activity detection
I have a Silverlight 3 application that needs to display progress whenever there is any activity on the page. I have various buttons on the page, some drop down lists and other UI elements, most of which are capable of making a request.
//Edited
and as such registering the BusyIndicator control for each of them is what I am trying to avoid.
The BusyIndicator control should work automatically based on any async call from the page. I am trying to bind the BusyIndicator control declaratively to page level without changing th开发者_JS百科e IsBusy property in code-behind. Setting the IsBusy property in code-behind is what i am trying to avoid.
To simply state, whenever a request is made from the page, be it from any control, the BusyIndicator should inform the user of such work and display itself based on the request and its status (hide itself when the request completes).
Is it feasible enough to implement the above in SL 3?
Any suggestions will be appreciated.
(The terms request, activity etc. are used in broad sense and I simply intend to mean them in the application parlance, no technical jargon intended).
Thanks & Regards.
I'm not entirely sure why you believe you would need a BusyIndicator per control, why not place the entire page in a single BusyIndicator. Have all the controls indicate busy through this single BusyIndicator.
精彩评论