dotnet / dotnet/maui

BlazorWebView for WinUI 3

Open
#7,380 36 comments 27 reactions 0 assignees View on GitHub
area-blazor discussed labs-candidate proposal/open t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

Please enable BlazorWebView for WinUI 3. I currently have Blazor Views that I would like to use in a native WinUI 3 app and there is no easy way to do that.

What I find strange is that I understand BlazorWebView works in Winforms + WPF and not in WinUI3.

### Public API Changes

--

### Intended Use-Case

Here is an example view of how I want to use it , this is part of the WinUI 3 Control galley app.

![image](https://user-images.githubusercontent.com/5297255/169593655-731832b1-aa3b-4249-878d-0296376988b7.png)

This is a code snippet in MAUI of the functionality:

![image](https://user-images.githubusercontent.com/5297255/169594280-3f7bc484-0e8d-4a09-8f8b-b16c19590fab.png)

I think it will also make native WinUI development more approachable and powerful where I can now sherry pick the best UI assets that exist in the market. ( from web , native controls or skia ) and my feeling is native development needs this as it is becoming more and more difficult to justify native WinUI3 development over PWA apps.

It will also significantly decrease the cost of native windows development.

I also raised this request in WinUI 3 template studio but I understand the feature should be raised in the maui repo here.

https://github.com/microsoft/TemplateStudio/issues/4506

Contributor guide

Open the contributing guide

Research direction

Start by comparing the existing BlazorWebView support in WinForms, WPF, and MAUI with the WinUI 3 Control Gallery example referenced in the issue. The Template Studio issue may provide additional context. Done means Blazor views can be hosted in a native WinUI 3 app with documented, working support.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.