3

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

Maria Kamenskyh
  • 467
  • 1
  • 3
  • 21

2 Answers2

1

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

Saamer
  • 4,687
  • 1
  • 13
  • 55
0

If you want to remove lines you can use this function and make color Transparent Change color lines in Picker XAMARIN

Maria Kamenskyh
  • 467
  • 1
  • 3
  • 21