//Setting the user parameter that determines which messages get retrieved //Loading page logo visible instead of question list, because the list has no data yet public ListOfQuestionsPage(UserModel user) { User = user; InitializeComponent(); Qaikulogo.IsVisible = true; Loading.IsVisible = true; QuestionList.IsVisible = false; NewMessageButton.IsVisible = false; BindingContext = new ListOfQuestionsPageModel(User); }
//Fetching data async, and toggling the logo for the question list once data is retrieved /// <summary> /// Updates the data for the List of Questions page /// </summary> protected async override void OnAppearing() { Qaikulogo.IsVisible = true; Loading.IsVisible = true; QuestionList.IsVisible = false; NewMessageButton.IsVisible = false; BindingContext = await ListOfQuestionsPageModel.Update(User); Loading.IsVisible = false; Qaikulogo.IsVisible = false; QuestionList.IsVisible = true; NewMessageButton.IsVisible = true; }