
Protected override void OnElementChanged(ElementChangedEventArgs e) Public MyPickerRenderer(Context context) : base(context) Private IElementController ElementController => Element as IElementController Public class MyPickerRenderer : .PickerRenderer This is a sample class for changing font size, color, text, alert dialog button position. You will need to write a custom renderer for each platform Private void BtnOpenPicker_OnClicked(object sender, EventArgs e) In the end this dummys-up the look and behavior of a more customizable Picker control. You don't see the button, but it is still clickable. Since they are all in a grid they will stack and fill by default taking up the same space, with Z-order implied by the order of creation, so its important to have them in this order.

Then a button with no text and transparent color on top of that. Then a label is placed on top with all the font and color styles set. Another developer can look at it and get the gist of the intention. The Picker is set invisible for convenience and to give the XAML some human readability. Here I'm using an ExtendedPicker, which is just a derived picker with binding capability (another shortcoming of the default picker) Stacking a few controls in a grid does work and give some flexibility to the display. I'm defining my PICKER in XAML.īut earlier in this thread I did describe a work said:

How do you change the PICKER font ? / Fontsize?.Ĭan someone provide some code. So.patience! But it's a good solution otherwise.

I understand that this should be resolved in Xamarin Forms release 2.3.5 in a few months. Focus() method from firing on iOS and UWP. However, there's apparently a bug in the Picker control that prevents the. So this works well on Android, and allows you to style the label font however you want. Private void PickerList_OnSelectedIndexChanged(object sender, EventArgs e) private void PickerLabel_OnTapped(object sender, EventArgs e) You can leave out the button simply by adding a tap gesture handler to the label.
