Пример #1
0
 protected override void OnDisappearing()
 {
     base.OnDisappearing();
     MedalsFooter.ActiveMedalPage(false);
     if (MedalListView.SelectedItem == null)
     {
         return;
     }
     MedalListView.SelectedItem = null;
     MedalListView.IsVisible    = false;
 }
Пример #2
0
        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;
        }