WebBrowser Control (1)

Source: Internet
Author: User

Windows Phone 7 has a powerful web browser built in. the kernel of this browser is based on Internet Explorer 7 of the desktop version (Mango is based on Internet Explorer 9, hereinafter referred to as Internet Explorer ), MSHTML is optimized for mobile devices, enhancing the features of mobile devices such as multi-touch. The Windows Phone 7 simulator has a built-in IE browser, as shown in Figure 3-23.

Figure 3-23 is an IE browser in the Windows Phone 7 simulator. This Browser allows you to easily browse various HTML webpages and fully support JavasCript, Ajax, and other features. Although the Windows Phone 7 browser is powerful, it is quite different from the Windows desktop browser, as shown below.

Apart from ActiveX controls, third-party browser controls, such as media players, various security controls, and upload controls, are not supported.

Does not support the Silverlight web page plug-in, nor does it support the popular Flash web page multimedia playback plug-in on the network.

Remove security features such as filters.

WML is not supported.

WebBrowser is a practical control that only provides the IE typographical engine and encapsulates most of the features of the built-in browser. Although this control does not provide menus, navigation bars, favorites, and other functions, it provides explanation engines such as CSS, HTML, and JavaScript. It is an IE browser that does not have a menu and does not provide the upper-layer Interactive dialog interface. Drag and Drop a WebBrowser control to the interface workspace. Only one IE browser icon is displayed, as shown in Figure 3-24. This control can be used only when necessary attributes are set for the WebBrowser control.

 
Figure 3-23 Windows Phone 7 IE browser
 
Figure 3-24 WebBrowser Control

 

Developers can easily build the WebBrowser control into various applications to facilitate application development. For example, common Weibo clients can make Member Data, Weibo rankings, hot topics, and hot forwarding into Web applications, and then use the WebBrowser control, embed the designed Web application into the current Windows Phone 7 Application to realize the combination of Web application and mobile application. The following describes the attributes and events of the WebBrowser control in depth.

The WebBrowser control contains many attributes. common and important attributes are as follows:

Height: the Height of the WebBrowser control.

Width: the Width of the WebBrowser control.

Source: The webpage Source to be displayed in the WebBrowser control. It can be a local or remote webpage address.

IsScriptEnabled: if it is set to True, the script function is enabled. If it is set to False, the script function is invalid.

Common events of the WebBrowser control are as follows:

Locaded: triggered during loading.

LocadCompleted: triggered after loading is complete.

Navigating: triggered during navigation.

Navigated: triggered when the navigation is complete.

In addition, WebBrowser only supports opening the most basic documents, such as html documents, images, or plain text.

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.