private void OnExpand() { CartPopupFade.IsVisible = true; CartPopupFade.FadeTo(1, ExpandAnimationSpeed, Easing.SinInOut); var height = pageHeight - CartPopup.HeaderHeight; CartPopup.TranslateTo(0, Height - height, ExpandAnimationSpeed, Easing.SinInOut); }
private void OnCollapse() { CartPopupFade.FadeTo(0, CollapseAnimationSpeed, Easing.SinInOut); CartPopupFade.IsVisible = false; CartPopup.TranslateTo(0, pageHeight - CartPopup.HeaderHeight, CollapseAnimationSpeed, Easing.SinInOut); }