Raccourci clavier dans UserControl ne fonctionne pas lorsque la zone de texte a le focus

La situation suivante. J'ai un UserControl avec cinq raccourcis clavier. Lorsque la zone de texte a le focus les raccourcis clavier de l'objet UserControl cesser le tir..

Est-il un moyen de corriger ce "problème"?

<UserControl.InputBindings>
    <KeyBinding Key="PageDown" Modifiers="Control" Command="{Binding NextCommand}"></KeyBinding>
    <KeyBinding Key="PageUp" Modifiers="Control" Command="{Binding PreviousCommand}"></KeyBinding>
    <KeyBinding Key="End" Modifiers="Control"  Command="{Binding LastCommand}"></KeyBinding>
    <KeyBinding Key="Home" Modifiers="Control" Command="{Binding FirstCommand}"></KeyBinding>
    <KeyBinding Key="F" Modifiers="Control" Command="{Binding SetFocusCommand}"></KeyBinding>
</UserControl.InputBindings>
<TextBox Text="{Binding FilterText, UpdateSourceTrigger=PropertyChanged}">
    <TextBox.InputBindings>
        <KeyBinding Gesture="Enter" Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl }}, Path=DataContext.FilterCommand}"></KeyBinding>
    </TextBox.InputBindings>
</TextBox>

Il semble touches de fonction (F1, etc) et ALT+[touche] faire le travail. Je suppose que la CTRL et MAJ modificateurs sont en quelque sorte "blocage" l'évènement de remonter à l'objet UserControl.

  • zone de texte est à l'intérieur de l'objet usercontrol?
  • exactement. Le contrôle UserControl est le conteneur et (dans cet exemple) une zone de texte est à l'intérieur. Il travaille également pour la zone de liste déroulante, DataGrid, etc.