diff options
Diffstat (limited to 'Xamarin.Forms.Controls')
-rw-r--r-- | Xamarin.Forms.Controls/CoreGallery.cs | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/Xamarin.Forms.Controls/CoreGallery.cs b/Xamarin.Forms.Controls/CoreGallery.cs index 27c2f0aa..8fd1f7bc 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)); } } @@ -85,8 +96,20 @@ namespace Xamarin.Forms.Controls { AutomationId = "TabbedPageRoot"; - BarBackgroundColor = Color.Maroon; - BarTextColor = Color.White; + + Device.StartTimer(TimeSpan.FromSeconds(6), () => { + BarBackgroundColor = Color.Maroon; + BarTextColor = Color.Yellow; + + Device.StartTimer(TimeSpan.FromSeconds(6), () => { + BarBackgroundColor = Color.Default; + BarTextColor = Color.Default; + + return false; + }); + + return false; + }); Children.Add(new CoreRootPage(this, NavigationBehavior.PushModalAsync) { Title = "Tab 1" }); Children.Add(new CoreRootPage(this, NavigationBehavior.PushModalAsync) { Title = "Tab 2" }); |