Learning Windows Phone7 development together (132.6 Web Control)

Source: Internet
Author: User
Tags comparison table

Is a browser control in phone7, which is based on Internet assumer7 and can be directly embedded into applications. This control is different from Windows mobile. In addition, this control, like MediaElement, is just a basic display window, And all controls must be completed by yourself. For example, Forward, Backward, and Refresh.

<Phone: WebBrowser Grid. row = "1" HorizontalAlignment = "Left" Name = "webBrowser1" verticalignment = "Top" Height = "649" Width = "480" Source = "http://www.baidu.com" IsScriptEnabled = "False" />

Source: The HTML page to load.

IsScriptEnabled: whether to run the page script. The default value is unavailable.

 

 

This control can complete the following functions:

Dynamic Loading of HTML content:

WebBrowser1.NavigateToString ("

Load Static HTML pages or HTML pages on Isolate Storage:

WebBrowser1.Navigate (new Uri ("readme.htm", UriKind. Relative ));

Load Web pages on the network:

WebBrowser1.Source = new Uri ("http://www.baidu.com", UriKind. Absolute );

In addition, this configuration also supports the browsing of .xhtml.

For example: webBrowser1.Navigate (new Uri ("http://www.flashkit.com/index.xhtml", UriKind. Absolute ));

 

 

However, this control also has some functions that cannot be completed:

Unable to browse https page;

The encryption icon cannot be displayed;

Plug-ins is not supported.

For example: webBrowser1.Navigate (new Uri ("https://ibsbjstar.ccb.com.cn/V5/index.html", UriKind. Absolute ));

 

There are some differences between Phone7 and silverlight. The following is a comparison table:

The extended Javascript function on Phone7:

 

Related Article

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.