Skip to main content

Microsoft Silverlight

Unanswered Question Composite Application (Prism) - Progress bar while remote module loadingRSS Feed

(0)

alexbf78
alexbf78

Member

Member

5 points

22 Posts

Composite Application (Prism) - Progress bar while remote module loading

Hello,

(Silverlight 3, Composite Application (prism))

Is is possible to display some kind of progress bar (or just a small animation) while a module is remotely loaded from the server?

Right now the app kinda freeze while the module is downloaded. I would like to display something to my users.

Any ideas?

Alex

XI-Factory - Free Online ASP.NET/AJAX Prototyping and code generation tool!
http://www.xifactory.com

K2P2
K2P2

Participant

Participant

1028 points

337 Posts

Re: Composite Application (Prism) - Progress bar while remote module loading

You can work with these and then paint about anything you want while it's loading.

{

WebClient WC = new WebClient ();

WC.OpenReadCompleted +=
new OpenReadCompletedEventHandler ( WC_OpenReadCompleted );

WC.DownloadProgressChanged += new DownloadProgressChangedEventHandler ( WC_DownloadProgressChanged );
}

void WC_DownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e )
{
   TotalBytesToReceive = e.TotalBytesToReceive;
   BytesReceived = e.BytesReceived;
   ProgressPercentage = e.ProgressPercentage;
}

alexbf78
alexbf78

Member

Member

5 points

22 Posts

Re: Composite Application (Prism) - Progress bar while remote module loading

Thanks!

but how do I integrate that with the ModuleManager in my composite application?

Alex

XI-Factory - Free Online ASP.NET/AJAX Prototyping and code generation tool!
http://www.xifactory.com

zenhgjjh
zenhgjjh

Member

Member

18 points

33 Posts

Re: Re: Composite Application (Prism) - Progress bar while remote module loading

Check this one

http://johnpapa.net/silverlight/fill-my-prism-region-please/

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities