Replies: 76 comments 53 replies
-
In theory I think the new proposed renderer architecture ( #28 ) should make it even easier to implement a Blazor based backend. I love your work so far on your blazor renderer experiment, and it's something that you could probably keep working on and transition to the new renderer architecture fairly easily in the future. |
Beta Was this translation helpful? Give feedback.
-
This is a must to compete with Flutter which is about to eat Xamarin for breakfast. One platform, means one platform. I don't want to have to have Blazor for web and then write a separate MAUI app. |
Beta Was this translation helpful? Give feedback.
-
Thanks! I definitely intend to try once MAUI settles a little more and it's clear what the rendering engine looks like. One issue with doing XF or MAUI on the web is closely related to the never-ending debate about lookless vs. native look. Web has no native look (at least not one anyone would ever want to use!) so MAUI either needs to go primarily lookless and have the framework take care of the chrome, or we'd have to commit to a particular web design framework (probably Material Design) at some point. I'm still hoping for the former in which case the renderer becomes almost trivial. |
Beta Was this translation helpful? Give feedback.
-
@legistek I'd definately say lookless, and then let the developer opt for "Shared styling across all" or "Platform specific". Shared styling would work with web as well, just a set of css that copied it. Platform specific, just use bootstrap or material as a default and let them go from there. Either case, customize with overrides just like CSS allows. |
Beta Was this translation helpful? Give feedback.
-
Agreed, but it's not up to me. :) If for example the renderer has to provide a fully working implementation of a |
Beta Was this translation helpful? Give feedback.
-
I would prefer Silverlight style aka WPF Everywhere (XAML/C# not HTML/CSS/Whatever). This time it wouldn't be a browser plugin (SL killer), but it would be based on web assembly. |
Beta Was this translation helpful? Give feedback.
-
when they bring Blazor into MAUI - it will be XAML/C# - thats the whole point of MAUI
Blazor is just a bridge now to cut out javascript from web dev
Adding the web target to MAUI (which effectively replaces Blazor) will remove HTML/javascript/css completely and any MAUI app will be able to target web as just another target
this is the ultimate i agree, and something I am very looking forward to
… On 22 May 2020, at 09:41, Tomas Fabian ***@***.***> wrote:
I would prefer Silverlight style aka WPF Everywhere (XAML/C# not HTML/CSS/Whatever). This time it wouldn't be a browser plugin (SL killer), but it would be based on web assembly.
See also Uno platform <https://platform.uno/>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <https://github.com/dotnet/maui/issues/62#issuecomment-632546269>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACOGERXXSSAXPM46OH4J5XDRSYUBHANCNFSM4NF6FJMQ>.
|
Beta Was this translation helpful? Give feedback.
-
@mrwcjoughin thanks for your clarification. I have to admit, that this thread confused me. It seemed to me that Blazor replacement or web targeting is questionable at the moment.
|
Beta Was this translation helpful? Give feedback.
-
I'm not sure what you're referring to, but if you're talking about this (https://github.com/xamarin/MobileBlazorBindings), unfortunately that is actually going in the opposite direction than what we're talking about. Yes that lets you use Blazor SYNTAX for your mobile app markup, instead of XAML, but you're still only making a mobile app. It does not allow reusing that markup to make a web app as there would still need to be platform renderers developed to implement the Xamarin Forms controls in a web framework such as Blazor's BACKEND (we really don't care about the Blazor/Razor markup syntax because we'd be using XAML). So we're might be talking about two different things. |
Beta Was this translation helpful? Give feedback.
-
The problem of course with the current plan is we still have web dev and mobile/desktop dev separate from each other. Even if you being blazor bindings that still means html for web and separate xaml/mvu for everything else. So as a result you're still behind flutter. Using skia means you can compete with flutter because it now becomes viable to write once and cover the web too. Better, co-opting flutter and using c# instead of dart and then contributing Windows skia gets you all of Google's hard work for free just like edgium. And with the tooling that comes with xamarin wrapping 100% of the platform's API so you can write it all in c# instead of knowing swift and kotlin too, remote emulators and azure devops build and publish in the cloud, and you have a major advantage over flutter that Google can't compete with meaning major win, and devs don't need a Mac if done right which means major win there too because that's the #1 reason Windows dev went down the tank. Windows was left to web since every dev was forced to own a Mac anyhow. This current approach doesn't feel well thought-out and still results in Microsoft being way behind flutter in the end of the day and that's 18 months away, versus .net 5 timeframe if they just adopted flutter's rendering engine. |
Beta Was this translation helpful? Give feedback.
-
Actually this is the most important requirement for MAUI from our company. But I have to admit, that I as a fullstack .NET developer, I'm not able to keep tracking these rapidly changing web frameworks, plus the rest Docker etc. Therefore we would really appreciate a real C#/XAML/BCL (NETSTANDARD libs eg OData client) ecosysten in the browsers (without Blazor intertwined logic approach). Without the web target we are honestly fine with separate mobile (Xamarin.Forms) and desktop WPF (in the future WinUI 3) platforms, even if we could target WinUI on top of MAUI. From this standpoint Uno platform seems to be more promising. Thank you for your understanding. |
Beta Was this translation helpful? Give feedback.
-
@tomasfabian I also have a background in WPF. |
Beta Was this translation helpful? Give feedback.
-
@mrwcjoughin I understand that the unification of my mobile and desktop apps would be for free. I wanted to emphases that the whole effort from MS doesn't worth it, without a viable browser/web target. But it's only my point of view. Thank you for your support and shout! |
Beta Was this translation helpful? Give feedback.
-
Just wanted to give a shout out to one of the forks of my original POC that has started to add some additional renderers: https://github.com/andresgutice/Xamarin.Forms.Platforms.Blazor Would also really love if someone from the Microsoft team wanted to weigh in on this topic. My main question is what would be the reason NOT to officially do this? |
Beta Was this translation helpful? Give feedback.
-
Hi @legistek, I found a similar Blazor project in the Xamarin repository Mobile.Blazor.Bindings. It uses .razor files with XAML intertwined with C#. Probably this is the way Microsoft would like to add Blazor to MAUI. |
Beta Was this translation helpful? Give feedback.
-
WASM please, but without being forced down the damned blazor path! |
Beta Was this translation helpful? Give feedback.
-
Wasm is the future, HTML/CSS/JavaScript should be thrown into the dustbin of history. |
Beta Was this translation helpful? Give feedback.
-
In my opinion there are two groups of developers, the first one are Blazor developers who want's to leverage there existing skills on the web to build native desktop and mobile apps. On the other hand the second group want's to bring there existing Xaml/MVVM related skills to cross platform development including the web. In my opinion the second group is for sure the vast majority in the .Net/C# space. The fundamental issue is that MAUI until now provide an option for the first group and not for the second. I think it's doable to bring MAUI to the web perhaps using Graphic Controls and render directly on the Web canvas and compile C# code to WASM. This will give us the possibility to build UI declaratively using MVU or using XAML/MVVM and render pixel-perfect apps with consistent UI/UX. This will cover most use cases and if there is any feature that is not available on the web I will be more than happy to see a PlatformNotSupportedException as there are WASM related things which are not yet standardized. Hope the team continue there awesome work and bring web support to MAUI. |
Beta Was this translation helpful? Give feedback.
-
Would we not be able to write an app in MAUI and then just leverage Uno to build it into WASM? Similar to this but updated for the WinUI project: |
Beta Was this translation helpful? Give feedback.
-
Please give us WASM/Web target in MAUI! |
Beta Was this translation helpful? Give feedback.
-
We need WASM/Web target! |
Beta Was this translation helpful? Give feedback.
-
What can we do to make it better? |
Beta Was this translation helpful? Give feedback.
-
There are a lot of strategies to support web. Should MAUI components be mapped to HTML components or rendered into a |
Beta Was this translation helpful? Give feedback.
-
For this use case, is it not a minimal extra step? Just build your Blazor app, and within the same solution, add a MAUI project that targets it with BlazorWebView? Voila, you have cross-platform app as well as something you can host and serve over a web browser as well. I don't think it's a good idea to try to awkwardly map XAML into HTML (or let strange voodoo hidden from the user render it into a canvas) and a much more sensible option is to use an established templating engine like Jade that Blazor can already do. Otherwise, you'll just inevitably run into cases where you start wanting to know more about the actual markup and influence it when a complex interface doesn't automagically render into something you want via MAUI anymore. MAUI can then just say "No can do" and guide you towards a limited setof Stack Overflow XAML-wranglers. HTML and adaptive styling of it with accessibility etc. can get complex these days and then I think Blazor is a far more pragmatic approach that lets you actually work with what is being presented. |
Beta Was this translation helpful? Give feedback.
-
I fully agree.
Blazor avoids us using JS, but still maintains the ballast of HTML5/CSS.
In my opinion XAML is by far more productive than HTML5/CSS.
…________________________________
De: Plamen Ivanov ***@***.***>
Enviado: miércoles, 29 de junio de 2022 00:28
Para: dotnet/maui ***@***.***>
Cc: rperazzolli ***@***.***>; Comment ***@***.***>
Asunto: Re: [dotnet/maui] [Enhancement] Web? (Discussion #62)
@jonasnordlund<https://github.com/jonasnordlund> the key here is XAML vs HTML. There are many XAML/MVVM developers which do not use HTML/MVC as they write desktop and mobile apps. There are also bulk of existing XAML/Xamarin Forms apps waiting to be migrated to MAUI. In both cases extending to web would require rewriting if you use Blazor.
Generally - what's the point to have new MAUI thing (including support of Xamarin Forms dialect of XAML) if you need to write all new apps to HTML and have XAML apps cut from web?
—
Reply to this email directly, view it on GitHub<#62 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFNYYC5BMSUB4D6CN332SG3VROKBTANCNFSM4TSO7IGQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Check out more sample here for any .Net Projects including Avalonia. |
Beta Was this translation helpful? Give feedback.
-
The issue #4528 got mentioned with the words
By @danroth27 at .net 8 preview 1 news articel on devblogs.microsoft.com |
Beta Was this translation helpful? Give feedback.
-
I'd be comfortable publishing my MAUI application not only to different OS but to the web too, especially if I am using MAUI.Blazor |
Beta Was this translation helpful? Give feedback.
-
I guess I'll be the first to address the elephant in the room. Or rather the conspicuous absence of the elephant in the room:
What about web???
Since it's pretty clear Microsoft isn't going to pursue this (at least right now) the more relevant question is will something like my experimental XF renderer for Blazor still be viable with MAUI?
Beta Was this translation helpful? Give feedback.
All reactions