EvasObject CreateNavItem(Page page) { View titleView = NavigationPage.GetTitleView(page); EvasObject nativeView = null; if (titleView != null) { titleView.Parent = this.Element; nativeView = new Native.TitleViewPage(Forms.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; } item.SetTabBarStyle(); item.TitleBarVisible = (bool)page.GetValue(NavigationPage.HasNavigationBarProperty); UpdateToolbarItem(page, item); UpdateBarBackgroundColor(item); UpdateBreadCrumbsBar(item); }