Created
July 25, 2019 03:02
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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