Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Copy paste in diagram (Read 2198 times)
monkeydll
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 27th, 2016
Copy paste in diagram
Jul 23rd, 2016 at 11:53am
Print Post  
Hello.

How can I disable copy and paste in my diagram.
The diagram is part of a diagramView and I am manipulating the diagram through my ViewModel
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3447
Joined: Oct 19th, 2005
Re: Copy paste in diagram
Reply #1 - Jul 23rd, 2016 at 12:11pm
Print Post  
Hi,

The component registers default bindings to ApplicationCommands.Copy/Cut/Paste. You can stop them altogether like this, or call your own method instead of empty handlers -

Code
Select All
diagram.CommandBindings.Add(
    new CommandBinding(ApplicationCommands.Copy, (sender, args) => {}));
// same for Cut and Paste
 



Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
monkeydll
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 41
Joined: Jun 27th, 2016
Re: Copy paste in diagram
Reply #2 - Jul 23rd, 2016 at 12:21pm
Print Post  
Thank you very much!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint