AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
25.28k stars 2.19k forks source link

Comparison with Xamarin and projects with similar goals #587

Closed SoonDead closed 3 years ago

SoonDead commented 8 years ago

I have no experience in cross platform .NET development, I have only tried Xamarin for a 2-3 screen demo app running on Android iOS and WP. Still it seems the .NET world is opening, some things are alpha, some are stable (yet work like some alpha), but it's becoming harder and harder to explore all options.

How is this different from Xamarin.Forms for example? Why would someone choose one and not the other?

I think it would be useful to see a document about the most shiny selling points of this framework.

jkoritzinsky commented 8 years ago

Xamarin.Forms uses the native controls on each platform to render instead of drawing customizable controls. Additionally, Xamarin.Forms only works on iOS, Android, WP, and UWP.

Conversely, Avalonia works on Windows, Linux, iOS, Android (may have regressed), UWP (missing glue code though), Mac OS X, and is very easily extensible to embedded platforms that support mono.

Xamarin.Forms is more stable currently. If you're doing mobile then Xamarin.Forms would be more useful right now, but Avalonia will give you more flexibility. However, once we stabilize Android, then Avalonia will be the only UI toolkit that works across both mobile and desktop platforms.

JimSEOW commented 7 years ago

Xamarin Forms supports the following OSs iOS, MacOS Android GTK (Linux) WPF (soon x86/x64) UWP ( W10, W10M, W10A, IoT Core, IoT Core Pro)

weitzhandler commented 7 years ago

@JimSEOW I'm not aware of XF support for WPF, it does support UWP, though not sure WPF. Can you please include any reference for that fact?

JimSEOW commented 7 years ago

@weitzhandler It was announced in Build 2017, it is expected to come Q3 2017 https://blog.xamarin.com/glimpse-future-xamarin-forms-3-0/

JimSEOW commented 7 years ago

@weitzhandler It is important that the different cross platform WPF efforts learn from each other and help each other!

juepiezhongren commented 6 years ago

we want ava and xf mixed together

jmacato commented 6 years ago

@juepiezhongren that would be pointless, since the two projects are divergent in their goals (Xamarin.Forms focuses with native experience in their target platforms, while Avalonia is for devs that want their apps to have uniform UI/UX across all supported platforms). Besides the untold amount of manpower required to merge the two projects or have them interoperate would be better focused on other aspects of the project that will be tangibly more beneficial to all.

kevmoens commented 5 years ago

@JimSEOW I'm not aware of XF support for WPF, it does support UWP, though not sure WPF. Can you please include any reference for that fact? To work with Xamarin Forms with WPF you need to add a new project to your solution for WPF and add the corresponding Xamarin Forms Nuget https://www.nuget.org/packages/Xamarin.Forms.Platform.WPF/