Skip to content

Instantly share code, notes, and snippets.

@adityadeshpande
Last active January 14, 2018 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adityadeshpande/1266c996fc35c378f66c395e003dc2e3 to your computer and use it in GitHub Desktop.
Save adityadeshpande/1266c996fc35c378f66c395e003dc2e3 to your computer and use it in GitHub Desktop.
<ContentPage.Content>
<Grid x:Name="_rootGrid">
//SearchBar
<SearchBar IsVisible="{Binding SearchMode}" Placeholder="Search items.." Text="{Binding SearchText}">
<SearchBar.Behaviors>
<behaviors:EventToCommandBehavior EventName="TextChanged" Command="{Binding SearchCommand}"/>
</SearchBar.Behaviors>
</SearchBar>
//ListView
<ListView x:Name="_ListView" ItemsSource="{Binding Items}"
ItemTemplate="{StaticResource ItemListDataSourceSelector}" HasUnevenRows="True"/>
</Grid>
</ContentPage.Content>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment