Introduction
We already learned how to perform MVVM Databinding with Fresh MVVM in my previous tutorials. If you are new to FreshMVVM, you can read the article here.

FreshMVVM
FreshMVVM is designed to implement MVVM easily with Xamarin.Forms applications. It is created by Michael Ridland. It has certain rules to perform MVVM Databinding. You can find the plugin from GitHub and NuGet.
Kindly refer to my previous article on FreshMVVM to know the basics and rules of FreshMVVM.
Coding Part
Steps
I have split this section into 3 steps, as in the following.
- Step 1: Creating new Xamarin.Forms project.
- Step 2: Setting up the plugin for Xamarin.Forms application.
- Step 3: Implementing FreshMVVM.
Step 1
Create a new project by selecting New >> Project >> Xamarin Cross-Platform App and click OK.
Select Android and iOS platforms, as shown below, with Code Sharing Strategy as PCL or .NET Standard and click OK.
Step 2
We will start coding for Fresh MVVM. Create a new Xamarin.Forms project. Open NuGet Package Manager against the solution and search for Fresh MVVM plugin or paste the following NuGet Installation.

Install-Package FreshMvvm -Version 2.2.3
Click "Install" to install this plugin against your PCL Project or .NET standard Project.
Step 3
Create your XAML page (View) with name “Page”.

Create PageModel by creating a class name ending with “PageModel” and inherited with “FreshBasePageModel” as shown in the below screenshot.
In the same way, I have created two pages, “Detail1Page” “Detail2Page”, with two respective page models, “Detail1PageModel” and “Detail2PageModel”.



Rawoof ShariefPosted Mar 4, 2021, 10:09 AM
How can I change the Master page width ?
Seenuvasan MPosted Oct 21, 2019, 5:31 AM
Hi how to assign Label and EntryText in Freshmvvm in PageModel