-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Add MobileBlazorBindings as analogue to xaml #2903
Comments
Hello, @Eilon. I'm surprised this improvement has been moved to the backlog. I would like to know if this improvement will be implemented? And when will it be possible to use advanced markup for elements instead of the old and boring xaml? From what I understand, this will not be included in the first MAUI release. because there is still a lot of work on the MAUI itself. But will it be in the second MAUI update? how long will it take after the release to enter such a convenient thing as razor markup? If MAUI will support razor syntax it will be awesome. It will be mich easier to work with it. Also bindings will be easier @if()
{}
@foreach(){}
// etc
<Input @bind-Value="@Name"/> It also seems to me that this will attract more people to use MAUI to create cross-platform applications. |
Use Blazor for native UI is something that we are experimenting with in Mobile Blazor Bindings but it is not in scope for .NET MAUI at this time. It's an area that the Blazor team is thinking about but we don't have specific plans on when we would start working on it. |
See dotnet/aspnetcore#44866 for some thoughts on this issue. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
This approach is similar to React Native and is highjly appealing for couple of reasons
As for my personal view. Blazor is not just about composition like React. Blazor is UI a framework. So it uses a different language which was designed for UI development and looks good to the eyes as compared to Flutter (good readability as compared to object braces/brackets). |
I think It'd be great for .net developers to be able to develop both web and native applications with one unified language(Razor syntax). In fact, the reason that .Net Maui hasn't lived up to the expectations of many developers somehow has to do with XMAL, which is pretty hard to work with. The way binding works in XAML has a lot to be desired for since it's string-based and most often you would have no idea whether the binding works or not until the app runs! |
You can check out https://github.com/Dreamescaper/BlazorBindings.Maui for blazor syntax support. |
Waiting for this to be supported by MSFT because this is amazing! |
This would really be awesome. Looking forward!!! |
At this point we don't have any plans to add Blazor components & Razor syntax as an alternative to XAML for rendering native UI in .NET MAUI, so we think it's time to close this issue. We already support Blazor Hybrid support in .NET MAUI to render web UI alongside of native UI. Blazor Hybrid enables .NET web developers to reuse their existing skills with HTML & C# to build native apps. Using Blazor components and Razor to build native UI has much narrower appeal: it appeals to developers that are already familiar with Blazor. For everyone else, you're now dealing with a completely new markup syntax and .NET MAUI specific components. The advantages of using Blazor native UI just don't seem to outweigh the cost of maintaining it as an alternative to XAML. We welcome any community efforts (like https://github.com/Dreamescaper/BlazorBindings.Maui) that wish to move forward with this functionality. |
While I understand the reasoning, this is still very disappointing. As someone considering what to migrate my Xamarin app to, this might be the final push to look for alternatives. When announced, I was excited to migrate to MAUI for better hot reload (getting closer to web frameworks) and new app models (Blazor / MVU) as an alternative to XAML - which for me is much less productive than alternatives. Full hot reload is not a thing outside of Visual studio for Windows, so basically non existent for iOS development, VS for MAC is gone, App center is gone, so Blazor alternative to XAML was the last hope better times are coming. Does not seem to be the case :( |
@jakubjenis Hot reload for .NET MAUI in Visual Studio Code is in the works. |
Visual Studio Code specifically, or CLI based through |
Summary
I think it's worth adding support for this out of the box. This will be the equivalent for XAML. This will give you a lower threshold for MAUI entry if you have experience with blazor. It's also worth mentioning that Blazor's syntax and structure is much more straightforward and easy to understand than very large xaml files.
Repo with mobile blazor bindings for xamarin
https://github.com/dotnet/MobileBlazorBindings
The text was updated successfully, but these errors were encountered: