diff options
author | Samantha Houts <samantha@teamredwall.com> | 2016-05-27 10:51:59 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-05-27 10:51:59 -0700 |
commit | f5bb474590add36bbf45b5455c7271a85eb7feda (patch) | |
tree | 2ca477fbffc3bd46732e728e14b88f41eb3fea28 /Xamarin.Forms.Controls/CoreGallery.cs | |
parent | 31ba696514f9b069d5dd6a8520d4f9f2ef963f74 (diff) | |
download | xamarin-forms-f5bb474590add36bbf45b5455c7271a85eb7feda.tar.gz xamarin-forms-f5bb474590add36bbf45b5455c7271a85eb7feda.tar.bz2 xamarin-forms-f5bb474590add36bbf45b5455c7271a85eb7feda.zip |
[A] TabbedPage text can be set back to Default (#157)
Diffstat (limited to 'Xamarin.Forms.Controls/CoreGallery.cs')
-rw-r--r-- | Xamarin.Forms.Controls/CoreGallery.cs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/Xamarin.Forms.Controls/CoreGallery.cs b/Xamarin.Forms.Controls/CoreGallery.cs index 27c2f0aa..bf4fe399 100644 --- a/Xamarin.Forms.Controls/CoreGallery.cs +++ b/Xamarin.Forms.Controls/CoreGallery.cs @@ -69,6 +69,17 @@ namespace Xamarin.Forms.Controls public CoreNavigationPage () { AutomationId = "NavigationPageRoot"; + + BarBackgroundColor = Color.Maroon; + BarTextColor = Color.Yellow; + + Device.StartTimer(TimeSpan.FromSeconds(2), () => { + BarBackgroundColor = Color.Default; + BarTextColor = Color.Default; + + return false; + }); + Navigation.PushAsync (new CoreRootPage (this)); } } @@ -86,7 +97,14 @@ namespace Xamarin.Forms.Controls AutomationId = "TabbedPageRoot"; BarBackgroundColor = Color.Maroon; - BarTextColor = Color.White; + BarTextColor = Color.Yellow; + + Device.StartTimer(TimeSpan.FromSeconds(2), () => { + BarBackgroundColor = Color.Default; + BarTextColor = Color.Default; + + return false; + }); Children.Add(new CoreRootPage(this, NavigationBehavior.PushModalAsync) { Title = "Tab 1" }); Children.Add(new CoreRootPage(this, NavigationBehavior.PushModalAsync) { Title = "Tab 2" }); |