Skip to content

Nuget package with base class to work with MVVM (Model View ViewModel) without dependence of framework. Save time with this library and enjoy to drink coffee. ☕

License

Notifications You must be signed in to change notification settings

juucustodio/MVVMCoffee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icon

MVVMCoffee

Nuget package with base class to work with MVVM (Model View ViewModel) without dependence of framework. Save time with this library and enjoy to drink coffee. ☕

This plugin, works on iOS, Android

NuGet

Name Info
MVVMCoffee NuGet

Platform Support

MVVMCoffee is a .NET Standard 2.0 library.Its only dependency is the Xamarin.Forms

Setup / Usage

Install the package in the shared project and use.

Using in your Model class

using MVVMCoffee.Models;

namespace Demo.Models
{
    public class Customer : BaseModel
    {
        public string Name
        {
            get { return _name; }
            set { SetProperty(ref _name, value); }
        }
        string _name = string.Empty;
    }
}

Using in your ViewModel class

using MVVMCoffee.ViewModels;

namespace Demo.ViewModels
{
    public class CustomerViewModel : BaseViewModel
    {
    
    ...

Navigation methods

PushAsync

await Navigation.PushAsync<CustomerViewModel>(false);

PushModalAsync

await Navigation.PushAsync<CustomerViewModel>(true);

SetRootAsync

await Navigation.SetRootAsync<CustomerViewModel>();

PopAsync

await Navigation.PopAsync(false);

PopModalAsync

await Navigation.PopAsync(true);

PopToRootAsync

await Navigation.PopToRootAsync();

About

Nuget package with base class to work with MVVM (Model View ViewModel) without dependence of framework. Save time with this library and enjoy to drink coffee. ☕

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages