Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created July 25, 2019 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/a96b1f5d5fedab36139da7232ee8922b to your computer and use it in GitHub Desktop.
Save juucustodio/a96b1f5d5fedab36139da7232ee8922b to your computer and use it in GitHub Desktop.
Example of how to work with MVVM pattern using the MVVMCoffee nuget package - http://julianocustodio.com/mvvmcoffee
using MVVMCoffee.Models;
namespace Sample.Models
{
public class Customer : BaseModel
{
public string Name
{
get { return _name; }
set { SetProperty(ref _name, value); }
}
string _name = string.Empty;
public int Age
{
get { return _age; }
set { SetProperty(ref _age, value); }
}
int _age;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment