ApplicationCommand.Paste happens twice
- by Carlo
Hi, well this is driving me crazy. We have a command like so:
<CommandBinding Command="ApplicationCommands.Paste" CanExecute="HasClipboardData" Executed="OnPasteExecuted"/>
And the code for OnPasteExecuted is this:
private void OnPasteExecuted(object sender, ExecutedRoutedEventArgs e)
{
CurrentView.Paste();
e.Handled = true;
}
That code gets executed twice, and I have no idea why, we also have the other commands: Cut, Copy, Undo, Redo, those work just fine, the problem is only with Paste. Let me know if you have any idea of what could be going on.
Thanks!