Picker Title Color

using xamarin forms (pcl)
creating Picker

 <Picker
      x:Name="Branches" 
      TextColor="White"
      Title="choose Branch"
      SelectedIndex="{Binding Branch}">
      <Picker.Items>
        <x:String>Id</x:String>
        <x:String>Name</x:String>
  </Picker.Items>
    </Picker>

the Title color is always Black not white?

Answers

  • AlanJonesRiosAlanJonesRios USMember ✭✭

    Android and iOS don't allow you to change that. It will be always gray. Sorry :(

  • FredyWengerFredyWenger CHInsider ✭✭✭✭✭

    It would be nice, if it always would be gray…
    After update from .forms 2.3.x to .forms 3.1, all colors were automatically (without any change) weird (black text on black background or white text on white background).
    I then had to change the architecture to my app.cs to split in app.xaml and app.xaml.cs, only to be able to set the colors back as they were before…

    Then, I noted, that also the title to the pikers are not showed anymore (as the title text new is set to black (instead of grey) and - as there is no property to set the title color in app.xaml / code, I have one more problem now to solve...

    Thanks Xamarin (once more) :disappointed:

  • Ashok_AAshok_A INMember ✭✭

    @ahmedElsayed said:
    using xamarin forms (pcl)
    creating Picker

     <Picker
          x:Name="Branches" 
          TextColor="White"
          Title="choose Branch"
          SelectedIndex="{Binding Branch}">
          <Picker.Items>
            <x:String>Id</x:String>
            <x:String>Name</x:String>
      </Picker.Items>
        </Picker>
    

    the Title color is always Black not white?

    TitleColor = "YourColor";

Sign In or Register to comment.