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)));
|
}
|
}
|
}
|