namespace Xamarin.Forms.PlatformConfiguration.macOSSpecific { using FormsElement = Forms.TabbedPage; public static class TabbedPage { #region TabsStyle public static readonly BindableProperty TabsStyleProperty = BindableProperty.Create("TabsStyle", typeof(TabsStyle), typeof(TabbedPage), TabsStyle.Default); public static TabsStyle GetTabsStyle(BindableObject element) { return (TabsStyle)element.GetValue(TabsStyleProperty); } public static void SetTabsStyle(BindableObject element, TabsStyle value) { element.SetValue(TabsStyleProperty, value); } public static TabsStyle GetTabsStyle(this IPlatformElementConfiguration config) { return GetTabsStyle(config.Element); } public static IPlatformElementConfiguration SetShowTabs(this IPlatformElementConfiguration config, TabsStyle value) { SetTabsStyle(config.Element, value); return config; } public static IPlatformElementConfiguration ShowTabsOnNavigation(this IPlatformElementConfiguration config) { SetTabsStyle(config.Element, TabsStyle.OnNavigation); return config; } public static IPlatformElementConfiguration ShowTabs(this IPlatformElementConfiguration config) { SetTabsStyle(config.Element, TabsStyle.Default); return config; } public static IPlatformElementConfiguration HideTabs(this IPlatformElementConfiguration config) { SetTabsStyle(config.Element, TabsStyle.Hidden); return config; } #endregion } }