protected override void OnEventRaised(ViewModelBase sender, ChangedEventBase eventArgs) { if (eventArgs.GetType() == typeof(UserProfileChangedEvent)) { var profileChanged = (UserProfileChangedEvent)eventArgs; CurrentUser.FirstName = profileChanged.ChangedUser.FirstName; CurrentUser.LastName = profileChanged.ChangedUser.LastName; CurrentUser.Description = profileChanged.ChangedUser.Description; if (profileChanged.ProfilePicture != null) { CurrentUserProfilePicture = profileChanged.ProfilePicture; } } }
protected virtual void OnEventRaised(ViewModelBase sender, ChangedEventBase eventArgs) { }