Specifying the source of data for WebView in Xamarin.Forms

Source: Internet
Author: User
Specify the data source for WebView in Xamarin.Forms source Page view WebView is used to display HTML and Web Form content. In this way, the interface can be designed with the help of Web pages, which facilitates the updating and maintenance. WebView reads the contents from the data source and displays them. WebView supports three data sources, including Web pages, HTML code, and local HTML files. These three forms are set through the Source property. In setting up these three form sources, you need to be aware of the following: first, using the Web page, you need to specify the full path of the page, including the http://or https://section. Second, using HTML code, you need to save the content as a string. At the time of assignment, use the @ symbol mark to not escape. Third, local HTML files often refer to other native JavaScript, CSS script files, so you need to specify a BaseURL property to indicate the underlying path to these file relative paths.

Specifying the source of data for WebView in Xamarin.Forms

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.