Skip to main content
Home Forums Silverlight Programming Programming with JavaScript Turning off the browser's menubar, toolbar, etc.when launching a SL app.
3 replies. Latest Post by willsgeorge on June 29, 2009.
(0)
spbgeb
Member
31 points
106 Posts
06-08-2009 8:28 PM |
I want to modify my Silverlight HTML starting page such that when the Silverlight application is launched, the browser's menubar, navigation bar, toolbar, etc are not shown. I do not want to launch a seperate window. Rather, I want to change the browser window that launches the SL app. Is there a way to do this? BTW, I do not want to put the browser into "full screen" mode. I want the user to be able to resize the browser. I simply don't want a menubar, navigation bar, etc.
ksleung
Contributor
5332 points
1,020 Posts
06-09-2009 12:44 AM |
This seems rather intrusive, don't you think? Even if you can do this (which I don't think so, due to the sandbox nature), and let's say you have some OnExit code to revert to the original setting, there is always a chance that your application is killed half way leaving the browser in an undesirable state. Your users are more likely to be angry than impressed.
daf555
60 points
11 Posts
06-10-2009 12:47 PM |
The fullscreen mode can only be activated by a user action. So the user for exaple have to click a button. It's a security feature of the silverlight plugin. One usecase to make your wish come true can be an intro page. When the user clicks on a 'skip intro' text the page can be loaded in fullscreen mode.
willsgeorge
10 points
9 Posts
06-29-2009 3:13 PM |
You can't do it on the same browser window. probably a work around may be call a javascript in the onload event of the body which can create an window without menu bar, tool bar etc, redirect to that page, and in that window you can host your xbap. i am not sure. just wild guess