Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Remove lines in Picker XAMARIN

kingston5555kingston5555 Member ✭✭✭

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

Best Answer

Answers

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭
  • kingston5555kingston5555 Member ✭✭✭

    I tried.But I have lots of errors

  • JarvanJarvan Member, Xamarin Team Xamurai
    edited August 24

    Remove lines in Picker XAMARIN

    To remove the lines, try setting the SelectionDividerHeight of the NumberPicker to 0.

    var picker = new NumberPicker(Context);
    picker.SelectionDividerHeight = 0;
    

    I tried SelectionDividerHeight=0,but I have the error

    If you couldn't get the SelectionDividerHeight command, update the Target Framework to Android 10.
    Go to Android project -> Properties -> Application, change the Target Framework to Android 10

  • kingston5555kingston5555 Member ✭✭✭
    I updated,but have error,so I search another resolution
  • JarvanJarvan Member, Xamarin Team Xamurai

    I updated,but have error,so I search another resolution

    What's the version of the Xamarin.Forms in the project? Try to update the nuget to the lastest stable version and test again.

  • kingston5555kingston5555 Member ✭✭✭

    I updated all. Nuggets, version of the Xamarin.Forms, Target FrameWork(API29, API 30 ) and it does not work

Sign In or Register to comment.