protected override void OnSwiped(MR.Gestures.SwipeEventArgs e) { base.OnSwiped(e); //ShoppingList mainInfo = new ShoppingList(); Debug.WriteLine("direction---" + e.Direction); Debug.WriteLine("direction---" + e.Center); if (e.Direction == MR.Gestures.Direction.Right) { // mainInfo.addCoupon(this); Debug.WriteLine("right"); } else if (e.Direction == MR.Gestures.Direction.Left) { Debug.WriteLine("left"); //mainInfo.deleteCoupon(this); } }
protected override void OnSwiped(MR.Gestures.SwipeEventArgs e) { base.OnSwiped(e); Debug.WriteLine(e.Direction); if (e.Direction == MR.Gestures.Direction.Right) { Debug.WriteLine("right"); //currentImage--; //if (currentImage < 0) // currentImage = images.Length - 1; //NotifyPropertyChanged(() => ImageSource); } else if (e.Direction == MR.Gestures.Direction.Left) { Debug.WriteLine("left"); //currentImage++; //if (currentImage >= images.Length) // currentImage = 0; //NotifyPropertyChanged(() => ImageSource); } }
protected override void OnSwiped(MR.Gestures.SwipeEventArgs e) { base.OnSwiped(e); if (e.Direction == MR.Gestures.Direction.Right) { currentImage--; if (currentImage < 0) { currentImage = images.Length - 1; } NotifyPropertyChanged(() => ImageSource); } else if (e.Direction == MR.Gestures.Direction.Left) { currentImage++; if (currentImage >= images.Length) { currentImage = 0; } NotifyPropertyChanged(() => ImageSource); } }
void Handle_Swiped(object sender, MR.Gestures.SwipeEventArgs e) { throw new NotImplementedException(); }
void Cell_Swiped(object sender, MR.Gestures.SwipeEventArgs e) { ((TextOnlyViewModel)BindingContext).AddText("Cell_Swiped method called, swiped " + e.Direction); }