In order to deny the Paste
command in the RadDiagram
you can remove it from the input bindings collection from code-behind (after the InitializeComponent() method) like so:
CommandManager.GetInputBindings(this.xDiagram).Remove(CommandManager.GetInputBindings(this.xDiagram).Where(i => i.Command == DiagramCommands.Paste).FirstOrDefault());
The drawback of this approach is that you will disable the whole paste capabilities ( Ctrl + V) of the RadDiagram
and you won't be able to paste even shapes from inside the RadDiagram
However if you need to be able to paste we will need you to elaborate more on your scenario.
I hope this helps you.
DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.