A WinUI 3 example project attempting to create a browser-like UI with WebView2.
We are not bullish on this approach. The WebView2 control in WinUI 3 (especially with .NET 10) has issues rendering - the control appears in the visual tree but doesn't actually display web content. The initialization events don't fire as expected.
This repo is saved for reference purposes only. We recommend exploring alternative approaches for browser embedding in Windows apps.
- Basic WinUI 3 app structure
- Navigation bar with back/forward/refresh buttons and address bar
- WebView2 control (not rendering properly)
- File-based logging for debugging
- WebView2 doesn't render any content
NavigationCompletedandNavigationStartingevents never fireEnsureCoreWebView2Async()hangs indefinitely- Setting
Sourceproperty completes without errors but nothing displays
- .NET 10
- Windows App SDK
- WebView2 Runtime (installed)
dotnet build
dotnet run