//public CarritoCompras(List<Platillos> platillos)
        //{
        //    InitializeComponent();
        //    lstCarrito.SwipeEnded += LstCarrito_SwipeEnded;

        //    if (platillos != null)
        //    {
        //        lstCarrito.ItemsSource = platillos;
        //        var total = platillos.Sum(p => p.Precio);
        //        lblTotal.Text = total.ToString("C");
        //    }
        //}

        private void LstCarrito_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e)
        {
            if (e.SwipeOffset >= 360)
            {
                lstCarrito.ResetSwipe();
            }
        }
Exemple #2
0
 private void SwipeBackToNormal(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e)
 {
     if (e.SwipeOffset == 100)
     {
         e.SwipeOffset = 0;
     }
 }
Exemple #3
0
        private void Listview_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e)
        {
            var model = (model)e.ItemData;

            isFalse++;
            ////entry.Text = model.content + "Listview_SwipeEnded";
            //entry.Text = " " + isFalse;
            //Console.WriteLine("====Listview_SwipeEnded");
            switch (isFalse)
            {
            case 1:
                test.Text = "Chewbacca";
                Debug.WriteLine("test");
                break;

            case 3:
                test.Text = "Luke Skywalker";
                break;

            case 5:
                test.Text = "Harrison Ford";
                break;
            }
        }
Exemple #4
0
 private void listView_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e)
 {
     // vm.ItemIndex = e.ItemIndex;
 }
Exemple #5
0
 private void ListView_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e)
 {
     itemIndex = (TS_BEDeposito)e.ItemData;
 }
        private void ItemsListView_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e)
        {
            var item = e.ItemData as Exercise;

            viewmodel.SelectedExercise = item;
        }
Exemple #7
0
 private void SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e)
 {
     swipedItem = e.ItemData as GeofencePlace;
 }
 void Handle_SwipeEnded(object sender, Syncfusion.ListView.XForms.SwipeEndedEventArgs e)
 {
     viewModel.ItemIndex = e.ItemIndex;
 }