Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin : Should you use an MVVM library and which is the best

With WPF I use "MVVM Light Toolkit from galasoft" but with Xamarin does it bring more functionality or simplicity to use a MVVM framework ?

And which framework is best all by being simple ?

I saw that there was "freshmvvm" but it seems that there are quite a few basic things.

like image 546
Philippe Auriou Avatar asked Feb 06 '20 08:02

Philippe Auriou


People also ask

What framework for MVVM should I use?

WPF Application Framework (WAF)

Does Xamarin use MVVM?

MvvmCross is a cross-platform MVVM library that allows you to put a common PCL directly from xamarin. android and xamrin. ios.

What is are the prominent MVVM framework S for Xamarin development?

There are many MVVM Frameworks available for Xamarin. iOS and Xamarin. Android development: MVVMCross, MvvmLight, PrismMVVM, ReactiveUI.

Is Xamarin MVVM or MVC?

We can choose different architecture according to different requirements. If you're using Xamarin Forms, MVC makes no sense because XAML supports View Model binding. The Model-View-ViewModel (MVVM) pattern helps to cleanly separate the business and presentation logic of an application from its user interface (UI).


2 Answers

With WPF I use "MVVM Light Toolkit from galasoft" but with Xamarin does it bring more functionality or simplicity to use a MVVM framework ?

This part of the question is OK and I'll answer it, the rest is not and it is strictly prohibited here to ask which library is the best because there is no such thing as the best library.

Speaking of the above there is a major difference between WPF and Xamarin. You can't do some major things in WPF without passing some variables from the backend to the model which deifies the purpose of MVVM, and that's where MVVM libraries got in place, to resolve that. As this is unnecessary in Xamarin, they bring almost no value and a nice pile of problems.

like image 126
Ivan Ičin Avatar answered Sep 22 '22 15:09

Ivan Ičin


I'll start by coding without an MVVM Framework at first, but I think I'll try FreshMvvm later. The latter seems to be the most suitable for my use. It is true that many things are done without needing the MVVM Framework with Xamarin.Form

a very good Xamarin.form project architecture MVVM/IOC... : https://github.com/dotnet-architecture/eShopOnContainers

like image 24
Philippe Auriou Avatar answered Sep 18 '22 15:09

Philippe Auriou