Tuesday, November 27, 2007

Limitations of Silverlight fullscreen mode

We could make any Silverlight application into full screen by setting the fullScreen property of Silverlight object.

//Silverlight 1.0
plugIn.content.fullScreen =true; //Where plugIn is the Silverlight control.

//Silverlight 1.1
BrowserHost.IsFullScreen = true;


//Silverlight 2
App.Current.Host.Content.IsFullScreen =true

But when we switch into full screen we will lost some functionalities .They are

  1. Not able to capture key strokes ie no keyboard support
  2. HTML overlay elements will be hidden : This is because we are just making th Silverlight control full screen.Not the entire HTML page.

No comments: