/// <summary> /// When overridden, allows application developers to customize behavior immediately prior to the <see cref="T:Xamarin.Forms.Page" /> becoming visible. /// </summary> /// <remarks> /// To be added. /// </remarks> protected async override void OnAppearing() { try { base.OnAppearing(); var uid = DependencyService.Get <IDatabaseInterface>().GetId(); var label = await LabelHelper.GetLabel(this.Value); var alllabel = await LabelHelper.GetAllLabels(); var notes = await FirebaseHelper.GetAllUserNotes(); var itemss = notes.Where(c => c.LabelsList.Equals(label)); Notelist.ItemsSource = itemss; Notelist.IsVisible = true; } catch (Exception ex) { await this.DisplayAlert("Exception", ex.Message, "ok"); } }