зеркало из https://github.com/DeGsoft/maui-linux.git
28 строки
576 B
C#
28 строки
576 B
C#
using System;
|
|
|
|
namespace Xamarin.Forms
|
|
{
|
|
public abstract class WebViewSource : BindableObject
|
|
{
|
|
public static implicit operator WebViewSource(Uri url)
|
|
{
|
|
return new UrlWebViewSource { Url = url?.AbsoluteUri };
|
|
}
|
|
|
|
public static implicit operator WebViewSource(string url)
|
|
{
|
|
return new UrlWebViewSource { Url = url };
|
|
}
|
|
|
|
protected void OnSourceChanged()
|
|
{
|
|
EventHandler eh = SourceChanged;
|
|
if (eh != null)
|
|
eh(this, EventArgs.Empty);
|
|
}
|
|
|
|
internal abstract void Load(IWebViewDelegate renderer);
|
|
|
|
internal event EventHandler SourceChanged;
|
|
}
|
|
} |