void UpdateHasNavigationBar(Page page)
{
NaviItem item = GetNaviItemForPage(page);
- item.Style = page is TabbedPage ? "tabbar" : "default";
+ //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);
AlignmentX = -1,
WeightX = 1,
SelectionMode = ToolbarSelectionMode.Always,
- Style = "tabbar_with_title"
};
+
+ if (Device.Idiom == TargetIdiom.Phone)
+ {
+ //Set ShrinkMode to Expand as defauly only for Mobile profile
+ _toolbar.ShrinkMode = ToolbarShrinkMode.Expand;
+ }
+ else if (Device.Idiom == TargetIdiom.TV)
+ {
+ //According to TV UX Guideline, toolbar style should be set to "tabbar_with_title" in case of TabbedPage only for TV profile.
+ _toolbar.Style = "tabbar_with_title";
+ }
+
_toolbar.Show();
//Add callback for Toolbar item selection
_toolbar.Selected += OnToolbarItemSelected;