Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

TabbedPage BarBackgroundColor, BarTextcolor

$
0
0

Hi all,

I'm using version 2.5.0.122203 of Xamarin.Forms and i'm trying to change TabbedPage bar colors (bar background color, text color and swiping bar color).

I have a simple page like this

c#

public partial class Test: TabbedPage
  {
    public Test()
    {
      InitializeComponent();
      this.BarBackgroundColor = Xamarin.Forms.Color.Aqua;
      this.BarTextColor = Xamarin.Forms.Color.Red;
    }
  }

xaml

<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Project1.Test">
  <ContentPage Title="Tab 1" />
  <ContentPage Title="Tab 2" />
  <ContentPage Title="Tab 3" />
</TabbedPage>

But the colors are not changing (Attached image)...

Am I missing something?

Btw is there any property to change the swiping bar color?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>