-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ContentPage to have a BlazorWebView for HTML usage #412
Comments
Yes, in theory this should work, but maybe you're missing some parameters on the |
Thank you @Eilon. Yes, here is the code of ProductItem that I'm trying to use in a BlazorWebView. ProductItem.razor
Does the BlazorWebView expect something else, please? |
I found a sample: https://github.com/dotnet/MobileBlazorBindings/blob/eaee277ee15fd3ef20f465c213bf6cd840023336/samples/HybridMessageApp/HybridMessageApp/MainPage.xaml I will try, thank you @Eilon |
Good morning @Eilon Looks like the BlazorWebView has no Host property yet in order to get the HTML working. Could you confirm? Thank you. |
O, sorry @Eilon I have just now come across BlazorWebView<IComponent> and MobileBlazorBindingsBlazorWebView that have Host property. Perhaps, this is the way to go about it to get it working. Thank you. |
Sorry @Eilon I couldn't get this working. I would appreciate it if you or your team could provide a tiny code snippet to get this working. In a Shell, ShellContent is a ContentPage where I want to have a BlazorWebView to show razor with HTML. Thank you. |
I got hold of passing the Host, but ContentPage is null here, could you let me know where I should be setting this? Thank you. |
Since Shell's Tab is expecting a ContentPage as a ShellContent, I was wondering if this is a valid way using BlazorWebView as ChildComponent so that I could use HTML as shown below.
ProductItem.razor
There is no error, but ProductItem is not seen.
The text was updated successfully, but these errors were encountered: