This repository has been archived by the owner on May 1, 2024. It is now read-only.
The control is not loading while using Webview2 in the HybridWebview custom renderer on the Xamarin.Forms.UWP platform. #15786
Labels
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);
}
Note: The control rendered properly if we use WebView instead of WebView2.
The text was updated successfully, but these errors were encountered: