summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/TabbedPage.cs
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.Core/TabbedPage.cs
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.Core/TabbedPage.cs')
-rw-r--r--Xamarin.Forms.Core/TabbedPage.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/TabbedPage.cs b/Xamarin.Forms.Core/TabbedPage.cs
index 53b736cb..5fb6bf9c 100644
--- a/Xamarin.Forms.Core/TabbedPage.cs
+++ b/Xamarin.Forms.Core/TabbedPage.cs
@@ -5,6 +5,34 @@ namespace Xamarin.Forms
[RenderWith(typeof(_TabbedPageRenderer))]
public class TabbedPage : MultiPage<Page>
{
+ public static readonly BindableProperty BarBackgroundColorProperty = BindableProperty.Create(nameof(BarBackgroundColor), typeof(Color), typeof(TabbedPage), Color.Default);
+
+ public static readonly BindableProperty BarTextColorProperty = BindableProperty.Create(nameof(BarTextColor), typeof(Color), typeof(TabbedPage), Color.Default);
+
+ public Color BarBackgroundColor
+ {
+ get
+ {
+ return (Color)GetValue(BarBackgroundColorProperty);
+ }
+ set
+ {
+ SetValue(BarBackgroundColorProperty, value);
+ }
+ }
+
+ public Color BarTextColor
+ {
+ get
+ {
+ return (Color)GetValue(BarTextColorProperty);
+ }
+ set
+ {
+ SetValue(BarTextColorProperty, value);
+ }
+ }
+
protected override Page CreateDefault(object item)
{
var page = new Page();