Created
July 10, 2013 20:08
-
-
Save slodge/5969839 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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