private void ViewThreadButton_Clicked(object sender, EventArgs e) { var item = (sender as Button).CommandParameter as MsgModel; var nextPage = new QuestionThreadPage(item, User); Navigation.PushAsync(nextPage); }
private void ViewThreadButton_Clicked(object sender, EventArgs e) { Log.Info("QADEBUG", "MessageItemView Viewthreadbutton käynnistyi!"); var item = sender as MsgModel; var question = item.BindingContext as MsgModel; var nextPage = new QuestionThreadPage(question); Navigation.PushAsync(nextPage); Log.Info("QADEBUG", "MessageItemView Viewthreadbutton valmistui!"); }
//Shows the details of an individual question thread private async void QuestionList_ItemTapped(object sender, ItemTappedEventArgs e) { MsgModel msgModel = (MsgModel)e.Item; var nextPage = new QuestionThreadPage(msgModel, User); await Navigation.PushAsync(nextPage); }