Technorati Tags: silverlight,silverlight 2.0
Silverlight has great full-screen support, and it is a simple matter to switch to full screen by setting the IsFullScreen property of the content object as follows. Note for security reasons this can only be done in response to user input; note also that this code has changed from version 1.1 alpha
//get the plugin content object
System.Windows.Interop.Content content = Application.Current.Host.Content;
public Page()
{
InitializeComponent();
// wire up key down and full screen changed events
this.KeyDown += new KeyEventHandler(Page_KeyDown);
content.FullScreenChanged += new EventHandler(Content_FullScreenChanged);
}
void Page_KeyDown(object...