Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit resize navigate window
2 replies. Latest Post by Min-Hong Tang - MSFT on November 9, 2009.
(0)
csbjunior
Member
39 points
52 Posts
11-04-2009 10:15 AM |
In SL 3, when navigating to another page I want the browser to pop up with an initial size but still keep the resize and the scroll bars
// This resizes and have scroll bars in the browser, but I cannot set the inital display size of the window. HtmlPage.Window.Navigate(new Uri(e.Result), "_blank");
// This gives the desired size of the window but it won't resize and there is NO scroll bars in the browser (IE 7) string options = "directories=yes,location=yes,menubar=yes,status=yes,toolbar=yes, width=400, height=500"; HtmlPage.Window.Navigate(new Uri(e.Result), "_blank", options);
bryant
Star
9937 points
1,629 Posts
11-04-2009 6:23 PM |
It should add scrollbars if they are needed since the default is scrollbars=yes.
scrollbars = { yes | no | 1 | 0 } Specifies whether to display horizontal and vertical scroll bars. The default is yes.
scrollbars = { yes | no | 1 | 0 }
Min-Hong...
Contributor
3619 points
412 Posts
11-09-2009 5:19 AM |
Hi,
This option string could meet your requirement:
string options = "directories=yes,location=yes,menubar=yes,status=yes,toolbar=yes,width=400, height=500,scrollbars=yes,resizable=1";
Best Regards