public static void Preserve() { CardsView.Preserve(); CarouselView.Preserve(); CubeView.Preserve(); CoverFlowView.Preserve(); ArrowControl.Preserve(); LeftArrowControl.Preserve(); RightArrowControl.Preserve(); CircleFrame.Preserve(); IndicatorItemView.Preserve(); IndicatorsControl.Preserve(); ParentScrollView.Preserve(); }
private void MainCardView_UserInteracted( PanCardView.CardsView view, PanCardView.EventArgs.UserInteractedEventArgs args) { if (args.Status == PanCardView.Enums.UserInteractionStatus.Running) { // Get the card that is showing var card = MainCardView.CurrentView as PlantCard; // Work out what percentage the swipe is var percentFromCenter = Math.Abs(args.Diff / this.Width); // Adjust scale when panning if ((percentFromCenter > 0) && (card.Scale == 1)) { card.ScaleTo(.95, 50); } // Update elements based on swipe position AnimateFrontCardDuringSwipe(card, percentFromCenter); // Get the next card in the stack, which is coming into the view var nextCard = MainCardView.CurrentBackViews.First() as PlantCard; //Update elements based on swipe postion AnimateIncomingCardDuringSwipe(nextCard, percentFromCenter); } // Setting Default Values after swipe if (args.Status == PanCardView.Enums.UserInteractionStatus.Ended || args.Status == PanCardView.Enums.UserInteractionStatus.Ending) { var card = MainCardView.CurrentView as PlantCard; AnimateFrontCardDuringSwipe(card, 0); card.ScaleTo(1, 50); } }