Skip to content
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

Open
Gayathri-github7 opened this issue Jul 28, 2023 · 3 comments
Labels
a/webview p/UWP s/unverified New report that has yet to be verified t/bug 🐛

Comments

@Gayathri-github7
Copy link

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 Gayathri-github7 added s/unverified New report that has yet to be verified t/bug 🐛 labels Jul 28, 2023
@Gayathri-github7
Copy link
Author

Any update on this?

2 similar comments
@Gayathri-github7
Copy link
Author

Any update on this?

@Gayathri-github7
Copy link
Author

Any update on this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/webview p/UWP s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

2 participants