Binding CommandParameter on ItemsControl Tap event
问题 I'm using an ItemsControl, and I want to identify which item was selected on the Tap command. My xaml is defined here: <ItemsControl ItemsSource="{Binding AllMyItems}"> <i:Interaction.Triggers> <i:EventTrigger EventName="Tap"> <cmd:EventToCommand Command="{Binding ItemSelectedCommand}" CommandParameter="{Binding}"/> </i:EventTrigger> </i:Interaction.Triggers> .... item template .... and here is my view model: public RelayCommand<MyItem> ItemSelectedCommand { get; private set; } public