title: How to assign Background Image to an entry in xamarin forms for ios
body: <p>I am trying to add background image to an entry in xamarin forms and i wrote code for rendering in ios and android. For android it is working and for ios it is not working.
  Here I am sharing rendering code for ios:</p>
  
  <pre><code>[assembly: ExportRenderer (typeof(ExtendedUsername), typeof(RenderingEntryuname))]
  namespace ifind.iOS
  {
  public class RenderingEntryuname: EntryRenderer
  {
      // Override the OnElementChanged method so we can tweak this renderer post-initial setup
      protected override void OnElementChanged(ElementChangedEventArgs&lt;Entry&gt; e)
      {
          base.OnElementChanged(e);
  
          if (Control != null) {
  
              Control.TextAlignment=UITextAlignment.Center;
              UIImage img=UIImage.FromFile("Images/newimg.jpg");
              Control.Background=img
  
          }
      }
  
  }
  }             
  </code></pre>