Forum Xamarin.Forms

Change colour of bottom tab bar

Steve1000Steve1000 Member ✭✭✭

Hi I have a tabbed page and i'm trying to change the background colours from black to a different colour but it doesn't seem to be working.

I've got the following code- not sure what else to try..

namespace MyApp
{
    public class HomePage : TabbedPage
    {

        public HomePage()
        {
            // Content = new Label { Text = "Hello ContentView" };

            var searchPg = (new SearchPage() 
            {
                Title = "Search",
                IconImageSource = "icons/search.png",
            });


            ProfilePage profilePage = new ProfilePage();

            var profilePg = new NavigationPage(_profilePage)
            {
                Title = "My Profile",
                IconImageSource = "icons/profile.png",
            };


            Children.Add((profilePg));
            Children.Add((searchPg));

            this.BarBackgroundColor = Color.Red;
    }
}
Tagged:

Best Answers

Answers

Sign In or Register to comment.