title: Dynamically show/hide search Xamarin.Forms.ListView
body: <p>I have tried to show my SearchBar in my list view when swipe down, </p>
  
  <p>so I have a hidden stacklayout when the screen is starting:</p>
  
  <pre><code>            &lt;ListView 
                      ItemsSource="{Binding Example}"
                      SeparatorVisibility="None"
                      BackgroundColor="Transparent"
                      HasUnevenRows="True"&gt;
                  &lt;ListView.Header&gt;
                      &lt;StackLayout Orientation="Horizontal" IsVisible="{Binding IsVisibleHeader}"&gt;
                          &lt;SearchBar x:Name="Search"/&gt;
                      &lt;/StackLayout&gt;
                  &lt;/ListView.Header&gt;
  </code></pre>
  
  <p>IsVisible="{Binding IsVisibleHeader"} is a boolean property initialized to false.</p>
  
  <p>I read this, <a href="https://stackoverflow.com/questions/41895092/dynamically-show-hide-header-or-footer-of-xamarin-forms-listview">Dynamically show/hide Header or Footer of Xamarin.Forms.ListView</a> but I can not change the value to true when I do swipe down in my list view and false when swipe up.</p>
  
  <p>Is there any way to detect when I scroll? Or should I do some custom renders?</p>