title: Xamarin Windows Entry background Color
body: <p>In my Xamarin forms application i need to change the background color of an Entry control when it got foucs. I added custom renderers but the default white color is not changing when it has focus in Windows application. It is working fine in ios and android. Here is my custom renderer for windows.</p>
  
  
  
  <pre class="lang-cs prettyprint-override"><code>public class MyCustomEntryRenderer : EntryRenderer
  {
     protected override void OnElementChanged(ElementChangedEventArgs&lt;Entry&gt; e)
     {
         if (Control != null)
         {
             Control.Foreground = new SolidColorBrush(Colors.Transparent);
             Control.Background = new SolidColorBrush(Colors.Transparent);
         }
         base.OnElementChanged(e);
     }
  
     protected override void OnElementPropertyChanged(object sender, 
                                              System.ComponentModel.PropertyChangedEventArgs e)
     {
         if (Control != null)
         {
             Control.Foreground = new SolidColorBrush(Colors.Transparent);
             Control.Background = new SolidColorBrush(Colors.Transparent);
         }
         base.OnElementPropertyChanged(sender, e);
     }
  }
  </code></pre>