I'm new in programming with silverlight and I play with it a little bit at the moment. I have an application, in which I have an LoginView and when I click on the Loginbutton, I call a Webservice (.asmx) to check the user input.
Now I would like to create a dialog, which I can show whenever I call a webservice and when the webservice is finshed I can close the dialog. In that dialog should exist a progressbar for e.g. with marquee-style or something else, to show the user, that
the application is loading. Is that possible?
The simplest way if to create a UserControl : it can display a kind of dialog with a progress bar or any animation you want. You can dynamicaly create the instance when the call to the service is done and suppress it once you have the answer. You can also
put one instance on your form and set its opacity to 0%, and just play with the latter to display/hide the "wait screen". You can also add a rectangle on all your form surface with a 0% color, and change this to 20/40% when you open your wait screen, giving
a shaded look to your application while the user is waiting.
Olivier Dahan (MVP Silverlight 2011 , MVP CAD 2010, MVP C# 2009)
www.e-naxos.com
Blog: www.e-naxos.com/blog
English is not my native language so be indulgent and do not hesitate to ask for clarification! Thanks.
Can you explain a bit what is "Activity.Dll" ? thanks.
Olivier Dahan (MVP Silverlight 2011 , MVP CAD 2010, MVP C# 2009)
www.e-naxos.com
Blog: www.e-naxos.com/blog
English is not my native language so be indulgent and do not hesitate to ask for clarification! Thanks.
DellaRocco
Member
19 Points
84 Posts
Display a Loading Panel, while calling a webservice?
Sep 04, 2009 09:53 PM | LINK
Hi folks,
I'm new in programming with silverlight and I play with it a little bit at the moment. I have an application, in which I have an LoginView and when I click on the Loginbutton, I call a Webservice (.asmx) to check the user input.
Now I would like to create a dialog, which I can show whenever I call a webservice and when the webservice is finshed I can close the dialog. In that dialog should exist a progressbar for e.g. with marquee-style or something else, to show the user, that the application is loading. Is that possible?
How would you realize that?
Thank you all in advance!
Best Regards
DellaRocco
odahan
Star
8828 Points
1496 Posts
Re: Display a Loading Panel, while calling a webservice?
Sep 05, 2009 03:32 AM | LINK
The simplest way if to create a UserControl : it can display a kind of dialog with a progress bar or any animation you want. You can dynamicaly create the instance when the call to the service is done and suppress it once you have the answer. You can also put one instance on your form and set its opacity to 0%, and just play with the latter to display/hide the "wait screen". You can also add a rectangle on all your form surface with a 0% color, and change this to 20/40% when you open your wait screen, giving a shaded look to your application while the user is waiting.
www.e-naxos.com
Blog: www.e-naxos.com/blog
English is not my native language so be indulgent and do not hesitate to ask for clarification! Thanks.
aniljos
Participant
850 Points
156 Posts
Re: Re: Display a Loading Panel, while calling a webservice?
Sep 05, 2009 07:33 AM | LINK
Silverlight 3 also gives us a ChildWindow, you can show this on the call to the web services and close it on the completed callback of the service
Please remember to mark the replies as answers if they help.
royal_blue
Member
226 Points
66 Posts
Re: Display a Loading Panel, while calling a webservice?
Sep 05, 2009 08:23 AM | LINK
You can use Activity.Dll. It's simple to use.
~~~~~~~~~~~~~~~~~~
Please "Mark as Answer" if this post answered your question. :)
odahan
Star
8828 Points
1496 Posts
Re: Re: Display a Loading Panel, while calling a webservice?
Sep 08, 2009 03:07 PM | LINK
Can you explain a bit what is "Activity.Dll" ? thanks.
www.e-naxos.com
Blog: www.e-naxos.com/blog
English is not my native language so be indulgent and do not hesitate to ask for clarification! Thanks.