EvasObject CreateNavItem(Page page) { View titleView = NavigationPage.GetTitleView(page); EvasObject nativeView = null; if (titleView != null) { titleView.Parent = this.Element; nativeView = new Native.TitleViewPage(System.Maui.Maui.NativeParent, page, titleView); nativeView.Show(); } else { nativeView = Platform.GetOrCreateRenderer(page).NativeView; } return(nativeView); }
void UpdateHasNavigationBar(Page page) { NaviItem item = GetNaviItemForPage(page); if (NavigationPage.GetTitleView(page) != null) { item.TitleBarVisible = false; Native.TitleViewPage tvPage = item.Content as Native.TitleViewPage; if (tvPage != null) { tvPage.HasNavigationBar = (bool)page.GetValue(NavigationPage.HasNavigationBarProperty); } return; } //According to TV UX Guideline, item style should be set to "tabbar" in case of TabbedPage only for TV profile. if (Device.Idiom == TargetIdiom.TV) { item.Style = page is TabbedPage ? "tabbar" : "default"; } item.TitleBarVisible = (bool)page.GetValue(NavigationPage.HasNavigationBarProperty); UpdateToolbarItem(page, item); UpdateBarBackgroundColor(item); UpdateBreadCrumbsBar(item); }