private void Initialize_Core() { //Generate collection of Notes Animate = true; Instructions = "Loading Passwords"; Task.Run(() => { var passwords = passwordManager.Get_PasswordByContactID <Passwords>(Constants.InMemory_ContactID); if (passwords.Count != 0) { foreach (var password in passwords) { PasswordCellViewModel obj = new PasswordCellViewModel(password, navigation, dialogue); obj._DeleteContent += RemovePassword_FromCollection; this.Passwords.Add(obj); } } this.Passwords.CollectionChanged += Passwords_CollectionChanged; }).ContinueWith((e) => { Device.BeginInvokeOnMainThread(() => { ReloadData = true; Animate = false; }); }); }