Skip to main content

Microsoft Silverlight

Answered Question how to prevent user input during processing?RSS Feed

(0)

csbjunior
csbjunior

Member

Member

39 points

52 Posts

how to prevent user input during processing?

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
Sledge70

Contributor

Contributor

5920 points

1,046 Posts

Re: how to prevent user input during processing?

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.

______________________________________________________
Please mark replies as answers if they answered your question...

Flexman on Silverlight

csbjunior
csbjunior

Member

Member

39 points

52 Posts

Re: how to prevent user input during processing?

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 

 

 

Sledge70
Sledge70

Contributor

Contributor

5920 points

1,046 Posts

Answered Question

Re: Re: how to prevent user input during processing?

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.

______________________________________________________
Please mark replies as answers if they answered your question...

Flexman on Silverlight
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities