summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/NavigationPage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/NavigationPage.cs')
-rw-r--r--Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/NavigationPage.cs32
1 files changed, 31 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/NavigationPage.cs b/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/NavigationPage.cs
index 4ca5976a..1f4472db 100644
--- a/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/NavigationPage.cs
+++ b/Xamarin.Forms.Core/PlatformConfiguration/iOSSpecific/NavigationPage.cs
@@ -5,6 +5,7 @@ namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
public static class NavigationPage
{
+ #region Translucent
public static readonly BindableProperty IsNavigationBarTranslucentProperty =
BindableProperty.Create("IsNavigationBarTranslucent", typeof(bool),
typeof(NavigationPage), false);
@@ -36,10 +37,39 @@ namespace Xamarin.Forms.PlatformConfiguration.iOSSpecific
return config;
}
- public static IPlatformElementConfiguration<iOS, FormsElement>DisableTranslucentNavigationBar(this IPlatformElementConfiguration<iOS, FormsElement> config)
+ public static IPlatformElementConfiguration<iOS, FormsElement> DisableTranslucentNavigationBar(this IPlatformElementConfiguration<iOS, FormsElement> 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<iOS, FormsElement> config)
+ {
+ return GetStatusBarTextColorMode(config.Element);
+ }
+
+ public static IPlatformElementConfiguration<iOS, FormsElement> SetStatusBarTextColorMode(this IPlatformElementConfiguration<iOS, FormsElement> config, StatusBarTextColorMode value)
+ {
+ SetStatusBarTextColorMode(config.Element, value);
+ return config;
+ }
+ #endregion
}
}