views:

69

answers:

1

My Silverlight application works fine when running in a browser.

But when I install it as an out-of-browser application, the Window frame comes up with an appropriate icon and title, but the content of the window is just white. It is in the start menu but when I close it and open again, it is still blank.

I reproduced this on Windows 7 and Windows XP.

What could be causing my silverlight application to show only white when running out-of-browser?

Here are the settings I used:

alt text

A: 

I found it: I had forgotten to wrap some DOM access during initialization which is apparently too early for OOB to show any kind of error, this fixed it:

if (!Application.Current.IsRunningOutOfBrowser)
{
   ...
}
Edward Tanguay