microsoft / TemplateStudio

Template Studio accelerates the creation of new WinUI 3, WPF, and UWP apps using a wizard-based experience.
Other
2.67k stars 457 forks source link

Add Blazor View to Template Studio #4506

Open Pinox opened 2 years ago

Pinox commented 2 years ago

Is your feature request related to a problem? Please describe.

In Blazor we have a counter page as example.

Please add an example where you display the blazor view and not just the webview.

eg.

image

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Applies to the following platforms:

mikebattista commented 2 years ago

If you could provide a Template Studio-based reference project that shows what a BlazorWebView page would like look, that would be helpful.

mikebattista commented 2 years ago

+@danroth27

Pinox commented 2 years ago

@mikebattista @danroth27 @SteveSandersonMS In Maui it would be as simple as this , but no idea how you do that in native WinUI3

image

danroth27 commented 2 years ago

We currently have BlazorWebView controls for .NET MAUI, WPF, and Windows Forms. We don't have one yet for WinUI 3, although it's certainly possible to add one if there is sufficient user demand. Currently all of the BlazorWebView implementations live in the https://github.com/dotnet/maui repo, so that's the right place to request a WinUI 3 BlazorWebView.

Pinox commented 2 years ago

thanks @danroth27 I really like the Hybrid Blazor concept in MAUI and would like to reuse my web Blazor Views in native WinUI 3. The Blazor Hybrid approach in WinUI 3 can significantly enhance my UI resources as I can then use Blazor + native WinUI3 controls in the same app. It also encourages UI sharing between Web + Native and will significantly decrease the cost of native development.

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.

I will open a feature request in the maui repo as suggested.