News for hackers. Stuff that matters.
Re:.NET on Linux: What a Contrast by npalli on Saturday February 03, 2024 @06:34PM (#39245873)
What is the latest story of native UI's with .NET. There is always some half baked stuff going on and abandoned all the time.
Re:.NET on Linux: What a Contrast by ClimaxGravely on Saturday February 03, 2024 @08:13PM (#39246518)
I haven't used it myself but I've had some colleagues recommend avalonia to me. They seem to really like it over MAUI.

Honestly I still love WPF (perhaps it's Stockholm syndrome). Obviously WPF only runs on windows desktop though.

Re:.NET on Linux: What a Contrast by Nelkins on Saturday February 03, 2024 @10:11PM (#39247171)
Check out Avalonia’s XPF. Allows WPF to run on macOS and Linux with almost no changes in most cases.

https://avaloniaui.net/XPF

Re:.NET on Linux: What a Contrast by tracker1 on Sunday February 04, 2024 @12:11AM (#39247796)
Seconded.. IIRC, I Believe even since cross platform tools from Microsoft (Git Credential Manager) use it.
Re:.NET on Linux: What a Contrast by ClimaxGravely on Sunday February 04, 2024 @12:03AM (#39247763)
Thank you! I had no idea something like this existed!
Re:.NET on Linux: What a Contrast by jjice on Saturday February 03, 2024 @06:53PM (#39245974)
The latest is MAUI, which seems to take a Dart/Flutter like approach.
Re:.NET on Linux: What a Contrast by mpawelski on Saturday February 03, 2024 @07:24PM (#39246185)
It's worth to note that MAUI is not cross-platform (Microsoft say it is, but for me excluding Linux desktop and calling it cross-pratform is a lie/marketing bullshit)
Re:.NET on Linux: What a Contrast by bigstrat2003 on Saturday February 03, 2024 @08:09PM (#39246497)
That's not true. They support Android, iOS, and MacOS. I agree it's disappointing that they don't support Linux, but it is by definition cross-platform.
Re:.NET on Linux: What a Contrast by ygra on Saturday February 03, 2024 @07:47PM (#39246341)
MAUI uses native controls, wrapped in its own system. Considering that Flutter draws everything itself I'd say that's a pretty substantial difference. It also manifests in how close to native your app can look/feel or how easy it is to integrate features of the respective native controls.

Avalonia is perhaps closer to Flutter.

Re:.NET on Linux: What a Contrast by JamesSwift on Saturday February 03, 2024 @07:23PM (#39246177)
Why do you think it is similar to Dart/Flutter? MAUI is basically a dolled-up Xamarin, but catered to .net 6+ (which has the ios/android toolchains as first party TFMs so it makes it much nicer to organize projects in some ways).

It also comes with a slew of new bugs : )

Re:.NET on Linux: What a Contrast by npalli on Saturday February 03, 2024 @06:57PM (#39245993)
As usual, the true test of whether something will stick is what apps/tools is Microsoft building with MAUI? If nothing, then good chance it is a yet another framework thrown at developers and abandoned five years later.
Re:.NET on Linux: What a Contrast by DANmode on Saturday February 03, 2024 @10:01PM (#39247116)
Does this take anything away from the rest of .NET?

Serious question.

Re:.NET on Linux: What a Contrast by tracker1 on Sunday February 04, 2024 @12:12AM (#39247799)
Not expressly, I just wouldn't invest in it, since it will likely fall into a dead end, like Silverlight.
Re:.NET on Linux: What a Contrast by DANmode on Sunday February 04, 2024 @05:27AM (#39249070)
I'm not sure you answered my question.

Just don't use MAUI, in favor of anything else?

Re:.NET on Linux: What a Contrast by mardifoufs on Saturday February 03, 2024 @07:36PM (#39246276)
With all its quirks, flutter is still miles ahead of MAUI (just look at actual usage of maui, it's close to 0). And imo they both take a pretty different approach anyways.
Re:.NET on Linux: What a Contrast by iconhacker on Saturday February 03, 2024 @07:29PM (#39246223)
MAUI sucks big on desktop UI. Try Avalonia and it is 100 miles ahead of the game!
Re:.NET on Linux: What a Contrast by scruple on Saturday February 03, 2024 @07:47PM (#39246338)
I see that Avalonia has a XAML previewer in VSCode. That's a big selling point for me so I'll give this a try. Thanks for mentioning it!
Re:.NET on Linux: What a Contrast by LeFantome on Sunday February 04, 2024 @12:13AM (#39247801)
Same. Avalonia and Uno are the go to options for cross-platform UI on .NET these days.