summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls
diff options
context:
space:
mode:
authorSamantha Houts <samantha@teamredwall.com>2016-04-18 09:46:51 -0700
committerJason Smith <jason.smith@xamarin.com>2016-04-18 09:46:51 -0700
commit75f112400223ea628ee008d311b7d5d54d98eafe (patch)
treeaf859c326a488cb0801fd57fca7bbce0cf0b4ad0 /Xamarin.Forms.Controls
parentfc05a57e9dfa5b70e21b08f9c8f839b7986b4698 (diff)
downloadxamarin-forms-75f112400223ea628ee008d311b7d5d54d98eafe.tar.gz
xamarin-forms-75f112400223ea628ee008d311b7d5d54d98eafe.tar.bz2
xamarin-forms-75f112400223ea628ee008d311b7d5d54d98eafe.zip
BarBackgroundColor and BarTextColor on TabbedPage (#96)
* [Core] Add properties to TabbedPage * [Controls] Add properties to test page * [iOS] Added BarBackgroundColor & BarTextColor to TabbedPage * [A] Added BarBackgroundColor & BarTextColor to TabbedPage * [UWP] Added BarBackgroundColor & BarTextColor to TabbedPage * [WinRT] Format file * [WinRT] Added BarBackgroundColor & BarTextColor to TabbedPage * [Docs] Updated docs
Diffstat (limited to 'Xamarin.Forms.Controls')
-rw-r--r--Xamarin.Forms.Controls/CoreGallery.cs21
1 files changed, 13 insertions, 8 deletions
diff --git a/Xamarin.Forms.Controls/CoreGallery.cs b/Xamarin.Forms.Controls/CoreGallery.cs
index 21c45e08..7b6ed150 100644
--- a/Xamarin.Forms.Controls/CoreGallery.cs
+++ b/Xamarin.Forms.Controls/CoreGallery.cs
@@ -78,40 +78,45 @@ namespace Xamarin.Forms.Controls
{
protected override void Init ()
{
-
}
#if APP
public CoreTabbedPage ()
{
AutomationId = "TabbedPageRoot";
- Children.Add (new CoreRootPage (this, NavigationBehavior.PushModalAsync) { Title = "Tab 1" });
- Children.Add (new CoreRootPage (this, NavigationBehavior.PushModalAsync) { Title = "Tab 2" });
+
+ BarBackgroundColor = Color.Maroon;
+ BarTextColor = Color.White;
+
+ Children.Add(new CoreRootPage(this, NavigationBehavior.PushModalAsync) { Title = "Tab 1" });
+ Children.Add(new CoreRootPage(this, NavigationBehavior.PushModalAsync) { Title = "Tab 2" });
Children.Add(new NavigationPage(new Page())
{
Title = "Rubriques",
+ Icon = "coffee.png",
+ BarBackgroundColor = Color.Blue
});
Children.Add(new NavigationPage(new Page())
{
- Title = "Le Club",
+ Title = "Le Club"
});
- Children.Add(new NavigationPage(new Page{Title = "Bookmarks"})
+ Children.Add(new NavigationPage(new Page { Title = "Bookmarks" })
{
Title = "Bookmarks",
});
- Children.Add(new NavigationPage(new Page() { Title = "Alertes" })
+ Children.Add(new NavigationPage(new Page { Title = "Alertes" })
{
Title = "Notifications",
});
- Children.Add(new NavigationPage (new Page(){Title = "My account"})
+ Children.Add(new NavigationPage(new Page { Title = "My account" })
{
Title = "My account",
});
- Children.Add(new NavigationPage(new Page(){Title = "About"})
+ Children.Add(new NavigationPage(new Page { Title = "About" })
{
Title = "About",
});