Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit how to prevent user input during processing?
3 replies. Latest Post by Sledge70 on November 9, 2009.
(0)
csbjunior
Member
39 points
52 Posts
11-04-2009 11:15 AM |
A progress bar is displayed when the application is accessing a web service, but it doesn't prevent the user to click a control, I would like to implement something like a gray background, like the one in the login control. Thanks.
Sledge70
Contributor
5920 points
1,046 Posts
11-04-2009 11:40 AM |
You can use the activity control.
http://www.davidpoll.com/?p=73
This displays a progress animation and disables controls by overlaying a partially transparent background.
11-06-2009 7:06 PM |
Thanks for the link, but although it acomplish what is needed, I found it a bit too complex to implement using my current knowledge of SL3.
I'm looking for something like a simple gray background using the exisiting SilverLight's ProgressBar
11-09-2009 4:48 AM |
Depending on how you have layed out your UI you can do this quite simply.
In your LayoutRoot have a grid with 2 rows. The 1st row contains your normal layout. The 2nd row contains a border and within it a standard progress bar. Have the opacity set to 0 and the visibility collapsed.
When you need to display the progress set the opacity to say 0.25 and make the border visible. This will overlay the entire screen with a semi-transparent background and a progress bar ticking away.