Skip to main content

Microsoft Silverlight

Answered Question Turning off the browser's menubar, toolbar, etc.when launching a SL app.RSS Feed

(0)

spbgeb
spbgeb

Member

Member

31 points

106 Posts

Turning off the browser's menubar, toolbar, etc.when launching a SL app.

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
ksleung

Contributor

Contributor

5332 points

1,020 Posts

Answered Question

Re: Turning off the browser's menubar, toolbar, etc.when launching a SL app.

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
daf555

Member

Member

60 points

11 Posts

Answered Question

Re: Re: Turning off the browser's menubar, toolbar, etc.when launching a SL app.

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
willsgeorge

Member

Member

10 points

9 Posts

Re: Re: Re: Turning off the browser's menubar, toolbar, etc.when launching a SL app.

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

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities