Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Is there anyway to control if the host browser window has status bar, url bar, etc
5 replies. Latest Post by sladapter on May 20, 2008.
(0)
sinosoidal
Member
664 points
373 Posts
05-20-2008 5:16 AM |
Hi,
I want to launch my app in a new window without any bars around. Just the border of the window.
How can I do that?
Thx,
Nuno
mzzlpik
35 points
13 Posts
05-20-2008 7:12 AM |
It is possible to launch full screen:
http://weblogs.asp.net/scottgu/archive/2007/05/17/tip-trick-supporting-full-screen-mode-with-silverlight.aspx
05-20-2008 9:04 AM |
Have you made it in SL 2?
Application.Current.Host.Content.IsFullScreen = true;
I tried that line above and nothing!
05-20-2008 9:20 AM |
hmm, i havent.
Maybe it doesnt work in SL2 :(
nmpgaspar
174 points
109 Posts
05-20-2008 11:12 AM |
I had the same issue.
that has to be an event:
{
}
Putting it on the page constructor won't work, for some reason - security from what i've read.
Cheers braga-boy!
sladapter
All-Star
17439 points
3,172 Posts
05-20-2008 12:18 PM |
see this demo:
http://www.mscui.net/PatientJourneyDemonstrator/
Your make your default.htmp page to have a Launch button. When clicked you open another browser window without any bars(use Javascript window.open function) to launch your Silverlight app.
If you want make the default.html page also siverlight control page with silverlight button:
on button_click:
HtmlPage.Window.Navigate(new Uri(AppStartPageUrl), "_blank", "toolbar=no,location=no,status=no,menubar=no,resizable=yes");