I have to react to a key-down-event in a datacell of a GridView. So in XAML I have defined the following:
<telerik:GridViewDataColumn Header="Bezeichnung" DataMemberBinding="{Binding Bezeichnung}"> <i:Interaction.Triggers> <i:EventTrigger EventName="KeyDown"> <GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBox}}, Path=DataContext.OpenNachschlagText}" /> </i:EventTrigger> </i:Interaction.Triggers></telerik:GridViewDataColumn>
With this snippet of code there are no errors in the output-console (no "DataContext.OpenNachschlagText not found" or so). But my ICommand (RelayCommand in my case) is not called when I press a key on the keyboard.
What is wrong or better: how can I react on a key, for example the F5 key?
Thanks in advance
Marcus