Skip to content

Instantly share code, notes, and snippets.

@grimorde
Last active February 19, 2020 12:39
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 grimorde/aca1ccf0c58f0e25ba84223149f912ac to your computer and use it in GitHub Desktop.
Save grimorde/aca1ccf0c58f0e25ba84223149f912ac to your computer and use it in GitHub Desktop.
Using the Item Tapped Event Arg Converter
<ListView ItemsSource="{Binding ListData}" HasUnevenRows="True">
<ListView.Behaviors>
<behaviors:EventToCommandBehavior EventName="ItemTapped" Command="{Binding ListItemSelected}" EventArgsConverter="{StaticResource ItemTappedEventArgsConverter}" />
</ListView.Behaviors>
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<!- your layout here-->
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</List>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment