title: How to implement custom renderer for date picker in xamarin.forms?
body: <p>I am creating an application on all platforms but mainly focus on <code>UWP</code> but when I try to implement date picker, I am facing few issue that is working fine in iOS and Android. Can anybody please help me?</p>
  
  <p>1- Is there any maximum width set by default for DatePicker? Currently I have added in DatePicker in Grid.Row with property "HorizontalOptions="FillAndExpand". </p>
  
  <p>Code:</p>
  
  <pre><code>&lt;local:ExtendedDatePicker HorizontalOptions="FillAndExpand" Date="{Binding DOBDate}" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="9"&gt;
  &lt;/local:ExtendedDatePicker&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/T9J5P.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T9J5P.jpg" alt="enter image description here"></a></p>
  
  <p>2- I want to make corner rounded. I am able to done with iOS and Android using Rendering. But I don't know how to make in UWP. I have tried with following code.</p>
  
  <p>Code:</p>
  
  <pre><code>protected override void OnElementChanged(ElementChangedEventArgs&lt;DatePicker&gt; e)
  {
      base.OnElementChanged(e);
  
      if (Control != null)
      {
          Control.BorderThickness = new Windows.UI.Xaml.Thickness(5);
          Control.Margin = new Windows.UI.Xaml.Thickness(0);
          Control.FontFamily = new Windows.UI.Xaml.Media.FontFamily("Roboto");
          Control.FontSize = 14;
          Control.Padding = new Windows.UI.Xaml.Thickness(0);
      }
  }
  </code></pre>
  
  <p>3- How to set format of the DatePicker. I have tried with following code and it works fine in iOS and Android. However, it keeps same format in UWP.</p>
  
  <pre><code>&lt;local:ExtendedDatePicker HorizontalOptions="FillAndExpand" Date="{Binding DOBDate}" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="9"&gt;
      &lt;DatePicker.Format&gt;dd/MM/yyyy&lt;/DatePicker.Format&gt;
  &lt;/local:ExtendedDatePicker&gt;
  </code></pre>
  
  <p>Image you can see in 1st point.</p>
  
  <p>Please suggest.</p>