locked
How to change Screen in Code Behind? RRS feed

  • Question

  • I am new to Expression package and am trying to change the screen by CodeBehind without success ... Can someone help me?
    --
    Sunday, April 4, 2010 12:44 AM

All replies

  • Did I understand you correctly? Do you want to know how to switch into fullscreen mode in a Silverlight app? Or what do you mean by "change the screen"?

    So if you want to switch into full screen from code behind in a Silverlight app do this:

    Application.Current.Host.Content.IsFullScreen = True

    Note: The switch into fullscreen mode must be triggered by a user input action, e.g. a click event of a button or a keystroke. So the code above must be placed into an appropriate event handler.

    Sunday, April 4, 2010 7:59 AM