title: Search bar remove text is not working in xamarin ios
body: <p>I am working with search bar in xamarin forms. I am not able to remove search text in search bar by clicking cross button. I am using custom renderer for remove cancel text in search bar. When I am using that renderer I am not able delete the text, If I remove that renderer it work's fine. what the wrong I have done in renderer file. Here is the sample code in renderer for hide the cancel button beside the search bar.</p>
  
  <p>Renderer Sample code:</p>
  
  <pre><code>  protected override void OnElementPropertyChanged(object sender, PropertyChnagedEventArgs e)
    {
  
        Control.ShowCancelButton = false;
    }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/mHAbg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mHAbg.png" alt="enter image description here"></a></p>
  
  <p>When I try to remove text in search bar by clicking cross image in search bar it's not working in xamarin ios but it's working fine in ios.</p>
  
  <p>Sample code : </p>
  
  <pre><code> &lt;StackLayout Grid.Column = "0" Orientation = "Horizontal"&gt;
   &lt;Image Source = "backarrow.png" HorizontalOptions = "StartAndExpand" VerticalOptions = "CenterAndExpand" /&gt;                           
   &lt;controls:CustomSearchbar x:Name = "CustomSearchbar" BackgroundColor ="Transparent" Text ="{Binding SearchTag}" SearchCommand ="{Binding RestaurantSearchCommand}" GHorizontalOptions = "StartAndExpand" VerticalOptions = "CenterAndExpand" &gt;
  </code></pre>
  
  <p> </p>
  
  <p>Here is the code I am using for search bar. Here 'customsearchbar' class is inherited from searchrenderer.</p>