1
wxr
2023-03-31 7e42cc13a14b7de31c9f5d5c61cdf24f3246335d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
 
namespace Shared
{
    public class WebView:View
    {
 
        private UIKit.UIWebView uiWebView
        {
            get
            {
                return this.uiView as UIKit.UIWebView;
            }
            set
            {
                this.uiView = value;
            }
        }
 
 
        public WebView ()
        {
            this.uiWebView = new UIKit.UIWebView { };
            this.uiWebView.ScalesPageToFit = true;
            this.uiWebView.DataDetectorTypes = UIKit.UIDataDetectorType.All;
        }
 
        public void Load(string url)
        {
            uiWebView.LoadRequest ( Foundation.NSUrlRequest.FromUrl (  Foundation.NSUrl .FromString(url)));
        }
    }
}