3

I've a Silverlight Application built with Silverlight 4 to and which works in Out of Browser mode. When I launch the application, there is a white screen appearing for some time. I did some googling, which referred me to a blog post by Mike Wolf, but then the link was removed. So I thought of getting the window handle and hide the window and showing something else till the loading is complete. But I understand we can't do pinvoke from Silverlight 4. But is, there some way I could avoid the white screen?

Niranjan
  • 813
  • 2
  • 12
  • 33
  • This link may help you: http://stackoverflow.com/questions/2504687/how-does-one-change-the-background-color-for-a-loading-out-of-browser-silverligh – Mamta D Jan 03 '12 at 17:59
  • I'm afraid it would not work in my case. I have created shortcut icons of my own which uses "/emulate" to launch the application - each time application is launched, index.html is created fresh. – Niranjan Jan 05 '12 at 10:19

1 Answers1

2

Maybe you are trying to call a webservice in the constructor of your application class (app.xaml.cs). As far as i know this isn't possible.

Bernhard
  • 195
  • 1
  • 11