TemplateStudio icon indicating copy to clipboard operation
TemplateStudio copied to clipboard

Add Blazor View to Template Studio

Open Pinox opened this issue 3 years ago • 5 comments

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:

  • [X] WinUI
  • [ ] WPF
  • [ ] UWP

Pinox avatar May 19 '22 13:05 Pinox

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

mikebattista avatar May 19 '22 19:05 mikebattista

+@danroth27

mikebattista avatar May 20 '22 01:05 mikebattista

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

image

Pinox avatar May 20 '22 08:05 Pinox

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.

danroth27 avatar May 20 '22 15:05 danroth27

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.

Pinox avatar May 20 '22 17:05 Pinox