Skip to content

Instantly share code, notes, and snippets.

@Char0394
Created June 1, 2020 22:08
Show Gist options
  • Save Char0394/7e391ec866e1629cb427a5864a9142db to your computer and use it in GitHub Desktop.
Save Char0394/7e391ec866e1629cb427a5864a9142db to your computer and use it in GitHub Desktop.
public class RegisterPageViewModel: INotifyPropertyChanged
{
public ValidatableObject<string> FirstName { get; set; } = new ValidatableObject<string>();
public ValidatableObject<string> LastName { get; set; } = new ValidatableObject<string>();
public ValidatableObject<DateTime> BirthDay { get; set; } = new ValidatableObject<DateTime>() { Value = DateTime.Now };
public ValidatableObject<string> PhoneNumber { get; set; } = new ValidatableObject<string>();
public ValidatablePair<string> Email { get; set; } = new ValidatablePair<string>();
public ValidatablePair<string> Password { get; set; } = new ValidatablePair<string>();
public ValidatableObject<bool> TermsAndCondition { get; set; } = new ValidatableObject<bool>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment