Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
Inputbinding not passed through
posted

I have user control where I have defined a default inputbinding to allow user to submit form on Ctrl-Enter

<UserControl.InputBindings>

<KeyBinding Key="Enter" Modifiers="Control" Command="{StaticResource SubmitCommand}" />

</UserControl.InputBindings>

 

I have XamNumericEditor on the control, when the user is focused on that control the inputbinding fails to execute but on any other control (TextBox etc) it works as expected and the command is executed. Anything I can do so the keyboard binding is propagated to the usercontrol.

 

<igWPF:XamNumericEditor x:Name="_Qty"

Value="{Binding Quantity, ValidatesOnDataErrors=True}"

SpinIncrement="{Binding QuantityIncrement}"

VerticalAlignment="Center"

ToolTip="{x:Static Member=ovf:Descriptions.ORDER_QUANTITY}"

ValueType="System:Int32"

Mask="nnn,nnn,nnn"

PromptChar=""

Format="N0"

SelectAllBehavior="SelectAllCharacters"

SpinButtonDisplayMode="Always"

EditModeStarted="EditModeStarted">

<igWPF:XamNumericEditor.ValueConstraint>

<igWPF:ValueConstraint MinInclusive="0"

MaxInclusive="999999999"

ValidateAsType="Integer32"/>

</igWPF:XamNumericEditor.ValueConstraint>              

</igWPF:XamNumericEditor>

Parents
  • 27093
    posted

    Hello acraft, 

    I have been looking into your issue and have managed to replicate this into an isolated project. It appears that this happens because enter is being used for managing the editor modes. I am currently looking for ways to overcome this. I will keep you updated.

Reply Children