I have a DataGrid in WPF that contains a list of names and email addresses, and an event handler that performs an action when a row is double-clicked:
<DataGrid x:Name="DataGrid_Emails" ItemsSource="{Binding AddressBook}">
<DataGrid.RowStyle>
<Style TargetType="{x:Type DataGridRow}">
<EventSetter Event="MouseDoubleClick" Handler="DataGrid_Emails_RowDoubleClick"/>
</Style>
</DataGrid.RowStyle>
<DataGrid.Columns>
<DataGridTextColumn Header="Name" Binding="{Binding Path=Name}"></DataGridTextColumn>
<DataGridTextColumn Header="Email" Binding="{Binding Path=Email}"></DataGridTextColumn>
</DataGrid.Columns>
</DataGrid>
I'd like to be able to extend this functionality to work on multiple rows if multiple rows are selected. Is it possible for me to simply add somethins to my EventSetter to cover this scenario?