public async void TransitionTo(double startY, double scrollAmount) { CreateCard(); AbsLayout.LowerChild(imageInFrame); scrollY = scrollAmount; //double scrollX = PartyScrollView.ScrollX; startY = startY - scrollY; prevY = startY; //imageInFrame..Source = PartyDetailsItem.pictureImageSource; imageInFrame.TranslationY = startY + _partyImageHeight / 2 - App.ScreenHeight; //AnimateableImage. DetailsScrollView.FadeTo(1, animationSpeed * 2, Easing.CubicInOut); HeaderLayout.FadeTo(1, animationSpeed * 2, Easing.CubicInOut); //AnimateableImage.ScaleTo(2, 250, Easing.Linear); //imageInFrame.HeightRequest = PartyImageHeight; imageInFrame.FadeTo(1, animationSpeed, Easing.CubicInOut); await imageInFrame.TranslateTo(imageInFrame.X, -App.ScreenHeight, animationSpeed, Easing.CubicInOut); PartyDetailsImage = PartyDetailsItem.pictureImageSource; //await imageInFrame.FadeTo(0, animationSpeed, Easing.CubicInOut); InputTransparent = false; }
public async void TransitionFrom() { DetailsScrollView.FadeTo(0, animationSpeed, Easing.CubicInOut); HeaderLayout.FadeTo(0, animationSpeed, Easing.CubicInOut); //AbsLayout.Children.Remove(imageInFrame); //AbsLayout.Children.Insert(0, imageInFrame); if (imageInFrame != null) { //await imageInFrame.FadeTo(1, animationSpeed, Easing.CubicInOut); PartyDetailsImage = null; await imageInFrame.TranslateTo(imageInFrame.X, -App.ScreenHeight + prevY + _partyImageHeight / 2 + DetailsScrollView.ScrollY, animationSpeed, Easing.CubicInOut); await imageInFrame.FadeTo(0, animationSpeed, Easing.CubicInOut); } InputTransparent = true; }