private async void ItemAppeared(PanCardView.CardsView view, PanCardView.EventArgs.ItemAppearedEventArgs args) { if (view.SelectedIndex == 1) { await RootScrollView.ScrollToAsync(EmptyLayout, ScrollToPosition.Start, true); view.ForceLayout(); } }
private async void OnCoverFlowViewItemAppeared(PanCardView.CardsView view, PanCardView.EventArgs.ItemAppearedEventArgs args) { if (view.SelectedIndex != 0) { var frame = view.CurrentView as Frame; var stackLayout = frame.Children[0] as StackLayout; await stackLayout.Children[0].ScaleTo(1.1, 200, Easing.CubicInOut); await stackLayout.Children[0].ScaleTo(1, 500, Easing.CubicIn); } }
private void CarouselView_ItemAppeared(PanCardView.CardsView view, PanCardView.EventArgs.ItemAppearedEventArgs args) { if (args.Index == 0) { unitsLabel.Text = "kW"; } else if (args.Index == 1) { unitsLabel.Text = "kWh"; } if (args.Type == PanCardView.Enums.InteractionType.User) { lastManualSwipe = DateTime.Now; ShowSettingsButtonThenFade(); } }
private void CarouselView_ItemAppeared(PanCardView.CardsView view, PanCardView.EventArgs.ItemAppearedEventArgs args) { }