public async void AnimateHiddenViewDown() { if (HiddenViewStatus != HiddenViewState.Collapsed) { var metrics = DeviceDisplay.ScreenMetrics; await HiddenView.TranslateTo(0, metrics.Height, 2000, Easing.SpringOut); ViewModel?.StartVideo(); HiddenViewStatus = HiddenViewState.Collapsed; } }
public async void AnimateHiddenViewUp() { if (HiddenViewStatus != HiddenViewState.Visible) { var metrics = DeviceDisplay.ScreenMetrics; await HiddenView.TranslateTo(0, 0, 2000, Easing.SpringOut); HiddenView.FeedView.ScrollTo(HiddenView.FeedView.SelectedItem, ScrollToPosition.Start, true); HiddenViewStatus = HiddenViewState.Visible; } }