Beispiel #1
0
        //Contextual menu actions
        //CONTEXT 3
        internal void ItemBought(NewNativeCell item)
        {
            Debug.WriteLine("Item Bought hit");

            //write something here
            DisplayAlert("Alert", "hello", "OK");
        }
Beispiel #2
0
        //		IEnumerable<SurveyResponse> es; // = service.GetResponsesForSurveyAsync ();

        public ContactsPage()
        {
            MessagingCenter.Subscribe <object> (this, "RefreshData", async(sender) => {
                await RefreshData();
            });


            answerListView = new ListView()
            {
                BackgroundColor = Color.Transparent,
                HasUnevenRows   = true,
                ItemTemplate    = new DataTemplate(() => {
                    var nativeCell = new NewNativeCell();
                    return(nativeCell);
                })
            };

            //answerListView.IsPullToRefreshEnabled = true;
            answerListView.ItemTapped += this.OnItemTapped;


            //MESSAGES
            MessagingCenter.Subscribe <NewNativeCell> (this, "ThoughtActionItem", ItemBought);
            MessagingCenter.Subscribe <NewNativeCell> (this, "PrayerActionItem", ItemQuantityIncreased);



            Content = new StackLayout {
                Children =
                {
//					theListView,
                    answerListView
                }
            };
        }
Beispiel #3
0
 internal void ItemQuantityIncreased(NewNativeCell item)
 {
     //write something here
     DisplayAlert("Alert", "hello", "OK");
 }