How to set ContentPage's Background color ?

YasahbiYasahbi FRMember ✭✭

Hi !
Anyone know how can i set the background color of my content page ?

Thanks !

Answers

  • NMackayNMackay GBInsider, University mod
    edited August 2016

    @Yasahbi

    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
                 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                 Title="{Binding AppTitle}"
                 BackgroundColor="White"
    
  • YasahbiYasahbi FRMember ✭✭

    I tried this, it doesn't work for me

  • NMackayNMackay GBInsider, University mod

    @Yasahbi

    Can you give a bit more detail? What version of Forms, What platform ? What API level is Android and are you using AppCompat?

  • YasahbiYasahbi FRMember ✭✭

    Well, seems like my problem isn't link to the background color.
    I tested your solution on an other page and its worked
    Thanks for your time

  • juandrnjuandrn Member ✭✭

    Works with ApplyToDerivedTypes

    @PhilippSumi said:
    If you want a generic style, you'll have to specify the ApplyToDerivedTypes attribute or it won't work:



Sign In or Register to comment.