Replies: 1 comment
-
For those that need solution for this issue, can refer to this: https://stackoverflow.com/questions/4798846/how-do-i-trap-keyboard-input-from-a-popup-control?rq=1 End up I added Focusable="True" in the UserControl tag, and add Focus() at controller the able to capture the key stroke. Root cause is the focus don't not swap from the host to the dialog, so the keyboard stroke cannot be capture. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, as the title, I try to implement
<i:Interaction.Triggers>
<i:EventTrigger EventName="KeyDown">
<prism:InvokeCommandAction Command="{Binding ExecutePhysicalKeyboardKeyDownCommand}" />
</i:EventTrigger>
</i:Interaction.Triggers>
in the dialog service, but the ExecutePhysicalKeyboardKeyDownCommand command never fire, if normal window working no issue.
and I tried
<UserControl.InputBindings>
</UserControl.InputBindings>
not working as well, it look like the window open by dialog service cannot capture keyboard input direct.
Can please help advice, thank you
Beta Was this translation helpful? Give feedback.
All reactions