Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

The control is not loading while using Webview2 in the HybridWebview custom renderer on the Xamarin.Forms.UWP platform.

Open Gayathri-github7 opened this issue 2 years ago • 3 comments

Title: The control is not loading while using Webview2 in the HybridWebview custom renderer on the Xamarin.Forms.UWP platform. Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/HybridWebview21359003660

We suspect that the source property is not set properly. Please find the code snippet for it below.

private const string LocalScheme = "ms-appx-web:///Content//"; public void LoadUrl(string url) { var uri = new Uri(url, UriKind.RelativeOrAbsolute); if (!uri.IsAbsoluteUri) uri = new Uri(LocalScheme + url, UriKind.RelativeOrAbsolute);

Control.Source = uri;

}

Note: The control rendered properly if we use WebView instead of WebView2.

Gayathri-github7 avatar Jul 28 '23 05:07 Gayathri-github7

Any update on this?

Gayathri-github7 avatar Jul 29 '23 06:07 Gayathri-github7

Any update on this?

Gayathri-github7 avatar Jul 31 '23 02:07 Gayathri-github7

Any update on this?

Gayathri-github7 avatar Jul 31 '23 06:07 Gayathri-github7