async Task OpenSlideUpMenuAsync() { // content overlay ContentOverlay.IsVisible = true; await ContentOverlay.FadeTo(0.9, 20, Easing.CubicIn); // Show menu await SlideUpMenu_Animated.TranslateTo(0, -200, slideMenuSpeed, Easing.CubicInOut); MenuContentLayout.RaiseChild(SlideUpMenu_Interactive); SlideUpMenu_Animated.IsVisible = false; slideMenuOpenClosePosition = 1; // Set flag to menu Open }
async Task CloseSlideUpMenuAsync() { // Hide menu SlideUpMenu_Animated.IsVisible = true; MenuContentLayout.LowerChild(SlideUpMenu_Interactive); await SlideUpMenu_Animated.TranslateTo(0, 0, slideMenuSpeed, Easing.CubicInOut); // content overlay await ContentOverlay.FadeTo(0, 100, Easing.CubicOut); ContentOverlay.IsVisible = false; slideMenuOpenClosePosition = 0; // reset counter to menu closed }