blob: c7932a8c16d6de5048c48988ba3b1f3fcb75f5bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System.ComponentModel;
namespace Xamarin.Forms
{
public class UrlWebViewSource : WebViewSource
{
public static readonly BindableProperty UrlProperty = BindableProperty.Create("Url", typeof(string), typeof(UrlWebViewSource), default(string),
propertyChanged: (bindable, oldvalue, newvalue) => ((UrlWebViewSource)bindable).OnSourceChanged());
public string Url
{
get { return (string)GetValue(UrlProperty); }
set { SetValue(UrlProperty, value); }
}
[EditorBrowsable(EditorBrowsableState.Never)]
public override void Load(IWebViewDelegate renderer)
{
renderer.LoadUrl(Url);
}
}
}
|