コード例 #1
0
        //Contextual menu actions
        //CONTEXT 3
        internal void ItemBought(MyNewNativeCell item)
        {
            Debug.WriteLine("Item Bought hit");

            //write something here
            DisplayAlert("Alert", "hello", "OK");
        }
コード例 #2
0
        //		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
                }
            };
        }
コード例 #3
0
 internal void ItemQuantityIncreased(MyNewNativeCell item)
 {
     //write something here
     DisplayAlert("Alert", "hello", "OK");
 }