I have the following KeyBindings:
<KeyBinding Gesture="Ctrl+S" Command="Save" />
<KeyBinding Gesture="Ctrl+Shift+S" Command="SaveAs" />
When I press Ctrl+Shift+S to execute the SaveAs
command, it works -- but directly afterwards, the Save
command is also executed. Is this caused by my Gesture definitions?
You have to mark the RoutedEvent as Handled=true
using the RoutedEventArgs
parameter in your method that handles the save.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With