public StartPage() { InitializeComponent(); BindingContext = _vm = new MainViewModel(); // ContentCarousel.ItemTemplate = new DataTemplate(typeof(MyFirstView)); SubcribeToSlideUpMenuMessages(); // Needed to catch SlideUpMenu events such as open and close menu... MenuContentLayout.LowerChild(SlideUpMenu_Interactive); // hide menu used for interaction to the back of the display stack //NOTE: The menu for Interaction should not be set to invisible as this will cause problems registering for messaging }
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 }