Skip to main content

Microsoft Silverlight

Answered Question resize navigate windowRSS Feed

(0)

csbjunior
csbjunior

Member

Member

39 points

52 Posts

resize navigate window

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
bryant

Star

Star

9937 points

1,629 Posts

Silverlight MVP
Answered Question

Re: resize navigate window

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.

 

-- bryant

Blog | Twitter
_________________
Dont forget to click "Mark as Answer" on the post that helped you.

Min-Hong Tang - MSFT
Min-Hong...

Contributor

Contributor

3619 points

412 Posts

Answered Question

Re: resize navigate window

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

 

Min-Hong Tang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities