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: