WebView2 control fails to load content in WinUI SampleBrowser
Author: nithisam22Created Sep 9, 2026Updated Sep 30, 2026
Labelsbugneeds-author-feedbackteam-Controls
Describe the bug
When running the WebView2 control inside the SampleBrowser application, the content does not load. However, when running the same control in a standalone sample project, it works correctly.
Why is this important?
We are currently using webview2 control in our application and we face an crash due to this .
Steps to reproduce the bug
Extract the attached project files.
Open the WebView folder.
Run the sample from within the SampleBrowser.
Observe that the content is not displayed.
Actual behavior
When running the sample inside the SampleBrowser, the HTML content is not displayed, even though the background color is applied.
Expected behavior
When running the sample inside the SampleBrowser, the HTML content must be displayed.
Screenshots
No response
NuGet package version
1.0.4191.47
Windows version
No response
Additional context
No response
Source: microsoft/microsoft-ui-xaml