protected override void OnDisappearing() { base.OnDisappearing(); MedalsFooter.ActiveMedalPage(false); if (MedalListView.SelectedItem == null) { return; } MedalListView.SelectedItem = null; MedalListView.IsVisible = false; }
protected override void OnAppearing() { base.OnAppearing(); var notifList = Global.GetAllTopic(); var currentMessageCount = notifList.Where(e => e.Value == "new_message").Count(); if (currentMessageCount <= 0) { MedalsFooter.BadgeVisibility = 0; } else { MedalsFooter.BadgeVisibility = 1; MedalsFooter.BadgeCountMessage = currentMessageCount.ToString(); } MedalsFooter.ActiveMedalPage(true); MedalListView.IsVisible = true; }