Load the page first, then get the data

Topics: Prism v4 - Silverlight 4
Feb 12, 2011 at 1:44 PM

Dear All,

I have a call to the .net RIA service to get data in hte construction of my viewmodel which is assigned to the page using MEF.

My problem ios that the page is taking a long time, until the page is loaded, which I don't like ..

How can I let the page load first,then allow the data to be loaded later. ...

Thanks and best regards

Waleed

Feb 12, 2011 at 7:18 PM

Either load the data before you load the page while showing some form of loading screen, and/or use some form of threading to load the data.

Probably best for this is:

How to: Use a Background Worker

Feb 13, 2011 at 3:07 PM

Dear JohnFenton,

It helps me a lot, also I found many usefull articles on the subject this is the one helped me :

http://msdn.microsoft.com/en-us/library/waw3xexc.aspx

Thanks and best regards

Waleed