FreshMVVM 101:Introduction
Introduction
I love to use custom frameworks in my Xamarin forms based applications and FreshMVVM is one of the best frameworks available in the market that built for Xamarin Forms. In this series I will discussing about key features of FreshMVVM to help you build awesome Xamarin Apps
According to author Michael Ridland his GitHub says, FreshMvvm is a super light Mvvm Framework designed specifically for Xamarin.Forms. It’s designed to be Easy, Simple and Flexible.
How does it compare to other options?
- It’s super light and super simple
- It’s specifically designed for Xamarin.Forms
- Designed to be easy to learn and develop (great when you are not ready for RxUI)
- Uses a Convention over Configuration
Features
- PageModel to PageModel Navigation
- Automatic wiring of BindingContext
- Automatic wiring of Page events (eg. appearing)
- Basic methods (with values) on PageModel (init, reverseinit)
- Built in IOC Container
- PageModel Constructor Injection
- Basic methods available in Model, like Alert
- Built in Navigation types for SimpleNavigation, Tabbed and MasterDetail
Installation
NuGet
FreshMVVM is available via NuGet,
Package Manager
This can be installed by Package Manager as below code
Install-Package FreshMvvm -Version 3.0.0
.Net CLI
dotnet add package FreshMvvm –version 3.0.0
Paket CLI
paket add FreshMvvm –version 3.0.0
Dependencies
- System.Reactive (>= 4.0.0)
- Xamarin.Forms (>= 3.4.0.1009999)