namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific { using FormsElement = Forms.NavigationPage; public static class NavigationPage { #region Translucent public static readonly BindableProperty IsNavigationBarTranslucentProperty = BindableProperty.Create("IsNavigationBarTranslucent", typeof(bool), typeof(NavigationPage), false); public static bool GetIsNavigationBarTranslucent(BindableObject element) { return (bool)element.GetValue(IsNavigationBarTranslucentProperty); } public static void SetIsNavigationBarTranslucent(BindableObject element, bool value) { element.SetValue(IsNavigationBarTranslucentProperty, value); } public static bool IsNavigationBarTranslucent(this IPlatformElementConfiguration config) { return GetIsNavigationBarTranslucent(config.Element); } public static IPlatformElementConfiguration SetIsNavigationBarTranslucent(this IPlatformElementConfiguration config, bool value) { SetIsNavigationBarTranslucent(config.Element, value); return config; } public static IPlatformElementConfiguration EnableTranslucentNavigationBar(this IPlatformElementConfiguration config) { SetIsNavigationBarTranslucent(config.Element, true); return config; } public static IPlatformElementConfiguration DisableTranslucentNavigationBar(this IPlatformElementConfiguration config) { SetIsNavigationBarTranslucent(config.Element, false); return config; } #endregion #region StatusBarTextColorMode public static readonly BindableProperty StatusBarTextColorModeProperty = BindableProperty.Create("StatusBarColorTextMode", typeof(StatusBarTextColorMode), typeof(NavigationPage), StatusBarTextColorMode.MatchNavigationBarTextLuminosity); public static StatusBarTextColorMode GetStatusBarTextColorMode(BindableObject element) { return (StatusBarTextColorMode)element.GetValue(StatusBarTextColorModeProperty); } public static void SetStatusBarTextColorMode(BindableObject element, StatusBarTextColorMode value) { element.SetValue(StatusBarTextColorModeProperty, value); } public static StatusBarTextColorMode GetStatusBarTextColorMode(this IPlatformElementConfiguration config) { return GetStatusBarTextColorMode(config.Element); } public static IPlatformElementConfiguration SetStatusBarTextColorMode(this IPlatformElementConfiguration config, StatusBarTextColorMode value) { SetStatusBarTextColorMode(config.Element, value); return config; } #endregion } }