47 references to WebView
Microsoft.Maui.Controls (40)
Hosting\AppHostBuilderExtensions.cs (2)
87 handlersCollection.AddHandler<WebView, WebViewHandler>(); 267 WebView.RemapForControls();
PlatformConfiguration\AndroidSpecific\WebView.cs (18)
5 using FormsElement = Maui.Controls.WebView; 37 public static MixedContentHandling MixedContentMode(this IPlatformElementConfiguration<Android, FormsElement> config) 43 public static IPlatformElementConfiguration<Android, FormsElement> SetMixedContentMode(this IPlatformElementConfiguration<Android, FormsElement> config, MixedContentHandling value) 50 public static readonly BindableProperty EnableZoomControlsProperty = BindableProperty.Create("EnableZoomControls", typeof(bool), typeof(FormsElement), false); 53 public static bool GetEnableZoomControls(FormsElement element) 59 public static void SetEnableZoomControls(FormsElement element, bool value) 65 public static void EnableZoomControls(this IPlatformElementConfiguration<Android, FormsElement> config, bool value) 70 public static bool ZoomControlsEnabled(this IPlatformElementConfiguration<Android, FormsElement> config) 76 public static IPlatformElementConfiguration<Android, FormsElement> SetEnableZoomControls(this IPlatformElementConfiguration<Android, FormsElement> config, bool value) 83 public static readonly BindableProperty DisplayZoomControlsProperty = BindableProperty.Create("DisplayZoomControls", typeof(bool), typeof(FormsElement), true); 86 public static bool GetDisplayZoomControls(FormsElement element) 92 public static void SetDisplayZoomControls(FormsElement element, bool value) 98 public static void DisplayZoomControls(this IPlatformElementConfiguration<Android, FormsElement> config, bool value) 104 public static bool ZoomControlsDisplayed(this IPlatformElementConfiguration<Android, FormsElement> config) 110 public static IPlatformElementConfiguration<Android, FormsElement> SetDisplayZoomControls(this IPlatformElementConfiguration<Android, FormsElement> config, bool value)
PlatformConfiguration\WindowsSpecific\WebView.cs (7)
5 using FormsElement = Maui.Controls.WebView; 26 public static bool IsJavaScriptAlertEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config) 32 public static IPlatformElementConfiguration<Windows, FormsElement> SetIsJavaScriptAlertEnabled(this IPlatformElementConfiguration<Windows, FormsElement> config, bool value) 51 public static WebViewExecutionMode GetExecutionMode(this IPlatformElementConfiguration<Windows, FormsElement> config) 56 public static IPlatformElementConfiguration<Windows, FormsElement> SetExecutionMode(this IPlatformElementConfiguration<Windows, FormsElement> config, WebViewExecutionMode value)
WebView\WebView.cs (13)
16 public partial class WebView : View, IWebViewController, IElementConfiguration<WebView>, IWebView 19 public static readonly BindableProperty SourceProperty = BindableProperty.Create(nameof(Source), typeof(WebViewSource), typeof(WebView), default(WebViewSource), 24 source.SourceChanged -= ((WebView)bindable).OnSourceChanged; 28 var webview = (WebView)bindable; 36 static readonly BindablePropertyKey CanGoBackPropertyKey = BindableProperty.CreateReadOnly(nameof(CanGoBack), typeof(bool), typeof(WebView), false); 41 static readonly BindablePropertyKey CanGoForwardPropertyKey = BindableProperty.CreateReadOnly(nameof(CanGoForward), typeof(bool), typeof(WebView), false); 47 public static readonly BindableProperty UserAgentProperty = BindableProperty.Create(nameof(UserAgent), typeof(string), typeof(WebView), null); 50 public static readonly BindableProperty CookiesProperty = BindableProperty.Create(nameof(Cookies), typeof(CookieContainer), typeof(WebView), null); 52 readonly Lazy<PlatformConfigurationRegistry<WebView>> _platformConfigurationRegistry; 60 _platformConfigurationRegistry = new Lazy<PlatformConfigurationRegistry<WebView>>(() => new PlatformConfigurationRegistry<WebView>(this)); 287 public IPlatformElementConfiguration<T, WebView> On<T>() where T : IConfigPlatform
Microsoft.Maui.Controls.Compatibility (7)
iOS\Renderers\WkWebViewRenderer.cs (7)
74 WebView WebView => Element as WebView; 583 if (e.PropertyName == WebView.SourceProperty.PropertyName) 592 if (((WebView)Element).Source != null) 593 ((WebView)Element).Source.Load(this); 710 WebView WebView => _renderer.WebView; 746 WebView.SetValueFromRenderer(WebView.SourceProperty, new UrlWebViewSource { Url = url });