Beispiel #1
0
        private async void ItemAppeared(PanCardView.CardsView view, PanCardView.EventArgs.ItemAppearedEventArgs args)
        {
            if (view.SelectedIndex == 1)
            {
                await RootScrollView.ScrollToAsync(EmptyLayout, ScrollToPosition.Start, true);

                view.ForceLayout();
            }
        }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
        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();
            }
        }
Beispiel #4
0
 private void CarouselView_ItemAppeared(PanCardView.CardsView view, PanCardView.EventArgs.ItemAppearedEventArgs args)
 {
 }