//Contextual menu actions //CONTEXT 3 internal void ItemBought(MyNewNativeCell item) { Debug.WriteLine("Item Bought hit"); //write something here DisplayAlert("Alert", "hello", "OK"); }
// IEnumerable<SurveyResponse> es; // = service.GetResponsesForSurveyAsync (); public MyPrayersPage() { MessagingCenter.Subscribe <object> (this, "RefreshData", async(sender) => { await RefreshData(); }); answerListView = new ListView() { BackgroundColor = Color.Transparent, HasUnevenRows = true, ItemTemplate = new DataTemplate(() => { var nativeCell = new MyNewNativeCell(); return(nativeCell); }) }; //answerListView.IsPullToRefreshEnabled = true; answerListView.ItemTapped += this.OnItemTapped; //MESSAGES MessagingCenter.Subscribe <MyNewNativeCell> (this, "ThoughtActionItem", ItemBought); MessagingCenter.Subscribe <MyNewNativeCell> (this, "PrayerActionItem", ItemQuantityIncreased); Content = new StackLayout { Children = { // theListView, answerListView } }; }
internal void ItemQuantityIncreased(MyNewNativeCell item) { //write something here DisplayAlert("Alert", "hello", "OK"); }