Several ways to open a Web page in Silverlight

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.