Webview not working in MAUI

Vaibhav Methuku 160 Reputation points
2025-04-27T03:19:05.51+00:00

I had created a sample MAUI solution with the .Net 9, and added a webview. and added the following piece of code in the mainpage.xaml

<StackLayout Padding="30,0" Spacing="25">

<WebView Source="https://www.google.com/" />

</StackLayout>

I'm unable to render the webview

Could you please help me with this issue.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,084 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.