How to change Picker font colour and size in Xamarin forms?

后端 未结 6 1664
梦如初夏
梦如初夏 2021-01-14 17:01

I\'m new to Xamarin and I\'m currently doing a project in Xamarin Forms PCL.

Is there a way to change the font colour and size of Picker?

  

6条回答
  •  隐瞒了意图╮
    2021-01-14 17:40

    Put the Label and Picker in the same Grid cell.Don't set Title of the picker instead the Text of the Label will work as Title.

    
             
    

    Now make the Text of Label Invisible when an Item is selected from Picker.

    void Picker_SelectedIndexChanged(object sender, System.EventArgs e)
            {
                PickerLabel.IsVisible = false;
            }
    

提交回复
热议问题