Remove lines in Picker XAMARIN

Viewed 1031

Please, help me to remove lines in the picker.I tried SelectionDividerHeight=0,but I have the error enter image description here

2 Answers

If you are trying to build this with Xamarin.Native Android, and you are using a NumberPicker or DatePicker, it is an easy solution: picker.ShowDividers = ShowDividers.None; But if you are using the Xamarin.Forms picker, there is no property you can use to hide the separator, as you can see in the official docs. So you have to use a CustomRenderer.

Here's an example of how to create a custom renderer for a Xamarin.Forms Picker and use it in your code.

Here's another good resource for Xamarin.Android native pickers

Related