Htmlpage.popupwindow
HtmlPopupWindowOptions option =Newhtmlpopupwindowoptions (); Option. Directories=true;//whether to open the IE Address barOption. Height = -;//browser window HeightOption. Width = -;//browser window widthOption. Status =true;//whether the status bar is visibleOption. Location =true;//whether to pop-up windowsOption. Menubar =true;//whether the menu bar is visibleOption. Resizeable =true;//whether the window can be resized to a high widthOption. Scrollbars =true;//whether the scroll bar is visibleOption. Toolbar =true;//whether the toolbar is visibleOption. left = option. Width/2;//The x-coordinate of the windowOption. Top = option. Height/2;//the y-coordinate of the windowHtmlpage.popupwindow (NewSystem.Uri ("http://www.baidu.com"),"_blank", option);Htmlwindow.navigate
Opens the specified URL
HtmlPage.Window.Navigate (Thenew Uri ("http://www.cnblogs.com/yalong_xiang/archive/2012/06/14/ 2549565.html""_blank");
Since Silverlight has restrictions on accessing local files, we can put the PDF file in the project directory.
Urikind.relativeorabsolute Not sure if it is an absolute or relative path
Urikind.absolute Absolute Path
Urikind.relative Relative path
HtmlPage.Window.Navigate (Thenew Uri ("http://localhost:9152/ProjectName/PDF/ Oreillyあああ Deep HTML5 Application Development scan version. PDF"_blank");
Several ways to open a Web page in Silverlight