I just created a menu with Command = "ApplicationCommands.Copy" and I thought I had to handle the Executed event of the binding, and add a binding but I just don’t need to.
Now I’m confused!
Where is the implementation of this command? How can it automatically copy a text selected in any of the textboxes I have in my window?
Thanks!
How did you verify that you didn’t need to handle the
Executedevent of the command – was it with the built-inTextBox? If so, the reason that you don’t have to handle it is because theTextBoxhandles that command already (since it is built-in). The same is true for the other edit commands – Cut, Paste, Undo, Redo (and probably others as well).If you were using your own custom command, then you would need to handle its
Executedevent, as you stated in your question.