public CallBacksPage() { InitializeComponent(); NavigationPage.SetBackButtonTitle(this, ""); HandleReceivedMessages(); CallbackFooter.SetRewardLevelIcon(Global.GetrewardPoints()); }
protected override void OnDisappearing() { base.OnDisappearing(); CallbackFooter.ActiveCallback(false); if (CallBacksListView.SelectedItem == null) { return; } CallBacksListView.SelectedItem = null; }
protected override void OnAppearing() { base.OnAppearing(); var notifList = Global.GetAllTopic(); var currentMessageCount = notifList.Where(e => e.Value == "new_message").Count(); if (currentMessageCount <= 0) { CallbackFooter.BadgeVisibility = 0; } else { CallbackFooter.BadgeVisibility = 1; CallbackFooter.BadgeCountMessage = currentMessageCount.ToString(); } CallbackFooter.ActiveCallback(true); CallbackFooter.SetRewardLevelIcon(Global.GetrewardPoints()); }