« SL Setting Image.Source property to URI | Main | Silverlight 2 Beta 1/ ASP.NET MVC and more »

Debugging FullScreen Silverlight On a Single Monitor

I've been having an error when trying to use any of the SL controls after going into full screen mode on my application.  I spent a few minutes with one of the Microsoft PM's here @ Mix in the Sandbox area and we tracked down what the error is.  The error was caused because I was hiding my "Go Full Screen " button after full screen was enabled.  Simply not hiding that allowed things to work.  This is apparently a known bug with the beta1 bits.

In tracking it down we encountered an interesting issue with trying to debug a Full Screen application on a single monitor.  In the past, I hadn't had a problem because I was always on a machine with dual displays and had Visual Studio on the non Full screen monitor.  This time I was on my  laptop, and when we set a breakpoint in the Application_UnhandledException method it kept me from being able to get back to Visual Studio to actually debug and see the exception.  It stopped and the breakpoint worked, but the Full Screen SL application would not let go of control of the display. 

To get around this, we simply added the following line to the Application_UnhandledException method to force the application back to non full screen.

Application.Current.Host.Content.IsFullScreen = false;

Posted on Wednesday, March 5, 2008 at 03:52PM by Registered CommenterDavid Yack | CommentsPost a Comment | References1 Reference

References (1)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Response: Online Dating Tips
    I have just foun this kind of online dating tips in a new site. Very interesting and helpfull.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>