public AccountViewModel(Account model) { this.Model = model; ViewModelHelper.BindNotifyChanged(model, this, (sender, e) => { switch (e.PropertyName) { case "ScreenName": this.RaisePropertyChanged(() => this.ScreenName); this.RaisePropertyChanged(() => this.ProfileImageUri); break; case "UserId": this.RaisePropertyChanged(() => this.UserId); break; } }); }
public void SetUsingAccount(Account account) { this.UsingAccount = account.UserId; }