title: How to Bind SearchBar's TextChanged Trigger to Command using EventToCommand Behavior in Xamarin.Forms using Prism?
body: <p>I am trying to wire-up the SearchBar control to fire a search/filter on the TextChanged Event/Trigger and not just when the Searchbar is pressed. I am using Prism &amp; MVVM in Xamarin and would prefer to do this with commanding.</p>
  
  <p>This is the code snippet for my Search:</p>
  
  <pre><code>  &lt;SearchBar Grid.Column="0" HeightRequest="40"   x:Name="CampaignSearchBar"
                         Placeholder="Search for" Text="{Binding SearchTerms}"
                         TextChanged=""
                         SearchCommand="{Binding SearchCommand }" /&gt;
  </code></pre>
  
  <p>Again, I want to bind the TextChanged Event/Trigger to a Command in my ViewModel and not a Event in a page using the Prism Library. I think there is an 'EventToCommandBehavior' class in Prism that can achieve this, however, I am not able to find documentation so far.</p>
  
  <p>How can I achieve this?</p>