static void HandleNavigationAnimationStarted(NavigationEventArgs args) { if (args.From is PopUp || args.To is PopUp) { return; } var fromTabs = args.From is NavBarTabs; var toTabs = args.To is NavBarTabs; if (fromTabs && toTabs) { Tabs.Appear(); } if (fromTabs && !toTabs) { Tabs.Disappear(animate: true); } if (!fromTabs && toTabs) { Tabs.Appear(animate: true); } if (!fromTabs && !toTabs) { Tabs.Disappear(); } }