Skip to content

Instantly share code, notes, and snippets.

@slodge
Created July 10, 2013 20:08
Show Gist options
  • Save slodge/5969839 to your computer and use it in GitHub Desktop.
Save slodge/5969839 to your computer and use it in GitHub Desktop.
public class FirstViewModel
: MvxViewModel
{
private string _firstName;
public string FirstName
{
get { return _firstName; }
set { _firstName = value; RaisePropertyChanged(() => FirstName); RaisePropertyChanged(() => FullName); }
}
private string _lastName;
public string LastName
{
get { return _lastName; }
set { _lastName = value; RaisePropertyChanged(() => LastName); RaisePropertyChanged(() => FullName); }
}
public string FullName
{
get { return string.Format("{0} {1}", _firstName, _lastName); }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment