title: Custom Renderer for Picker in Xamarin.Forms
body: <p>I want to customize my picker. I created a custom renderer for my picker but I dont know how the customization settings. How can I change the font style and size of the item? and How can I remove the two lines?</p>
  
  <p><a href="https://i.stack.imgur.com/7dJsg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7dJsg.png" alt="enter image description here"></a></p>
  
  <pre><code>public class CustomPickerRenderer : PickerRenderer
  {
      public CustomPickerRenderer(Context context) : base(context)
      {
          AutoPackage = false;
      }
  
      protected override void OnElementChanged(ElementChangedEventArgs&lt;Picker&gt; e)
      {
          base.OnElementChanged(e);
          if (e.OldElement == null)
          {
              Control.Background = null;
              var layoutParams = new MarginLayoutParams(Control.LayoutParameters);
              layoutParams.SetMargins(0, 0, 0, 0);
              Control.LayoutParameters = layoutParams;
              Control.SetPadding(0, 0, 0, 0);
              SetPadding(0, 0, 0, 0);
          }
      }
  }
  </code></pre>