Replies: 23 comments 81 replies
-
Its not forced, you can code your UI in C#. |
Beta Was this translation helpful? Give feedback.
-
Better than C++ .rc files. I'll take XAML over that any day :P |
Beta Was this translation helpful? Give feedback.
-
"We"? Talk about yourself. XAML is a great way to create an UI. Much better than the code mess in for example Flutter. |
Beta Was this translation helpful? Give feedback.
-
Have to admit I used to hate Xaml in the early days of WPF, but now that I am getting used to Maui I actually quite like it. Despite all the problems with Maui and Xaml I think it's quite good now. Visual Studio could do with being a bit more helpful when using Xaml though - that's my main issue with it. It kind of feels like the people developing VS and the people developing Xaml are fighting against each other. |
Beta Was this translation helpful? Give feedback.
-
Similarly, I don't understand why Microsoft is still moving towards XAML. For simple applications it may seem ok, but when you want to do something more custom, things start to get tricky. For many of us, what we need is a solution that allows us to easily create an interface directly in the code, without the need to use XAML, but with similar capabilities. For this purpose, I opened a Pull Request, which opens the way to creating a user interface in a declarative way directly in the code. For those interested, please support me in this topic, and interest in this PR. I based my proposal on a library I created, which is a wrapper on the MAUI library. It uses the fluent API, in which you can clearly describe the interface directly in the code. I even managed to create a plugin for Visual Studio thanks to which Hot Reload for ContentPages created in the MVVM pattern is possible, which is very useful in many cases. PR: #12728 |
Beta Was this translation helpful? Give feedback.
-
I'm a big fan of XAML. It creates a nice clean separation between UI and code. I've been using XAML for about 15 years now with WPF, Silverlight, Xamarin, and MAUI, and I say keep using XAML. |
Beta Was this translation helpful? Give feedback.
-
We've mostly phased out XAML for our app too. We're using MAUI CommunityToolkit.Markup. It keeps the UI definitions very readable, and avoids all the pitfalls of XAML. For us the choice was easy, since we're loading rather dynamic UI. Using XAML was not a good option. If you're making something very static, XAML might give better performance. |
Beta Was this translation helpful? Give feedback.
-
MAUI with XAML is not suitable to large app and in my opinion is not even ready to small app. |
Beta Was this translation helpful? Give feedback.
-
Microsoft is still moving towards XAML, so that we can make our own tools according to our needs, different from the fluter provided by Google, developers prepare it and just use it but can't make it themselves |
Beta Was this translation helpful? Give feedback.
-
I theorize that part of the reasoning for things like XAML is that the idea was it could be compiled at runtime for fast execution but was friendly enough for WYSIWYG tooling to parse at design time too to give a good development experience. It would generally be much more difficult for an editor to pluck some random class out of your code and execute the UI bits in isolation to create a preview. This is why in WPF it made perfect sense; you write XAML and the tooling created a nice representation of your UI. You compile your app and the XAML is compiled into IL and for the most part disappears. The XAML acted as a way of describing the UI separately to the app logic. That said, for MAUI there is no design-time tooling so that advantage is pretty much zero. So I'd see using XAML vs C# as 50/50 except in my experience the hot reload for C# is far flakier than the XAML hot reload for non-trivial apps. |
Beta Was this translation helpful? Give feedback.
-
I don't really get the negative comments about XAML. I find it quite nice to use. I see people commenting that it's not modern and not up to the job, but without really providing any reason for those comments. From what I can see it works fine and is easy to use. What are the alternatives, and what benefit do these alternatives bring? What can you do with these alternatives that you can't with XAML? |
Beta Was this translation helpful? Give feedback.
-
Yeah, I don't really fully understand the negative comments about XAML either. I find it to be a nice way to describe a UI, and to separate the UI description from code. I think XAML is much much much better and more intuitive than HTML/CSS. While there are some cases in which the UI needs to be done in code, I think XAML is excellent as a way to define/describe a UI for the majority of use-cases. |
Beta Was this translation helpful? Give feedback.
-
I prefer xaml, xaml should not be abandoned,The xaml syntax and intellisense should be enhanced. |
Beta Was this translation helpful? Give feedback.
-
XAML is a dead technology. No young developer today is going to invest the time to learn it. It feels heavy and outdated. We see modern frameworks like Flutter, SwiftUI, or even JavaScript-based solutions that only require a single language to create beautiful, high-performance apps. C# alone could be enough to achieve great results, just like those frameworks do with a single language. I also wonder if Microsoft even fully supports XAML anymore, or if it's just a legacy from Xamarin. It doesn't seem like an intentional choice for the future of app development. |
Beta Was this translation helpful? Give feedback.
-
stop your xaml project dont use maui, using fluter, you dont find xaml again |
Beta Was this translation helpful? Give feedback.
-
Flutter, SwiftUI, or even JavaScript-based cannot create extraordinary project like net maui, because flutter, swiftui or even javascript run inside mini browser which is specially made for mobile app |
Beta Was this translation helpful? Give feedback.
-
It seems to me that the problem is not about discontinuing XAML in MAUI through a top-down decision, but rather about providing a good alternative for those who find building applications directly in C# code a better and more flexible solution. I believe the issue will resolve itself, as people will make their own choices, rather than a group of managers with a preference for HTML, CSS, and XAML. Yes, these are technologies that have allowed content to be described over the years, but unfortunately, they are very limited, not type-safe, and difficult to debug. Not to mention the significant unreadability of such "code", which is hard to even call code—it's more of a view description. All of this can be achieved using C# and fluent methods, thus benefiting from the richness of a mature programming language like C#. Of course, there is the CommunityToolkit/Maui.Markup, but it's not part of Microsoft, rather a community-driven approach, which means it's not an out-of-the-box solution, and many methods remain unresolved. Over a year ago, I created a library as a proof of concept (Sharp.UI) using code generators to show a different approach—that it can indeed be done—and based on it, I even built several production projects without a single line of XAML. So, as they say, it is possible to do it differently. |
Beta Was this translation helpful? Give feedback.
-
Here’s why:
To give some context, I’m a developer with 10 years of experience in WPF, Silverlight, and Xamarin, and I’ve also worked with Flutter. I can assure you that any company starting a mobile app project without technical constraints tied to the .NET ecosystem would never choose MAUI. Tools like Flutter are far superior, more performant, and better suited to current development needs. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thanks for feedback, you are right about some things, for other things, however, I think differently. |
Beta Was this translation helpful? Give feedback.
-
Please close this issue - is just a waste of time- Maui Team can hardly cope with bugs let alone this useless discussion. Code as you wish - c# - xaml - etc.. and concentrate efforts in discussion that help fix real issues. |
Beta Was this translation helpful? Give feedback.
-
one thing that is certain is that "please, stop xaml" is a windows programming person with a basic level, so he is used to doing drag and drop programming. please stop this useless discussion. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dotnet/Comet I remember this project was created sometime ago. MVU may help you. |
Beta Was this translation helpful? Give feedback.
-
Microsoft is going straight into the wall with Xaml. I've been a WPF developer for 15 years, but seriously stop the xaml, we don't want it anymore.
I don't understand this forcing from Microsoft.
Beta Was this translation helpful? Give feedback.
All reactions