...
Code Block |
---|
<ListBox x:Name="listBox" ItemsSource="{Binding PersonCollection}" SelectedItem="{Binding SelectedPerson}"> <i:Interaction.Behaviors> <catel:KeyPressToCommand Command="{Binding MyCommand}" Key="Enter" Modifiers="Ctrl" /> </i:Interaction.Behaviors> </ListBox> |
Note |
---|
In WPF, the e.Handled is set to true for the RoutedEvent |