public HomePage() { InitializeComponent(); NavigationPage.SetBackButtonTitle(this, ""); CheckConnection(); HandleReceivedMessages(); HomeFooter.SetRewardLevelIcon(Global.GetrewardPoints()); }
protected override void OnAppearing() { base.OnAppearing(); App.Current.Resources["backgroundColor"] = Color.White; App.Current.Resources["backTextColor"] = Color.FromHex("#435742"); var notifList = Global.GetAllTopic(); var currentMessageCount = notifList.Where(e => e.Value == "new_message").Count(); if (currentMessageCount <= 0) { HomeFooter.BadgeVisibility = 0; } else { HomeFooter.BadgeVisibility = 1; HomeFooter.BadgeCountMessage = currentMessageCount.ToString(); } HomeFooter.SetRewardLevelIcon(Global.GetrewardPoints()); }