Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic The right-click menu controls the copy, paste or delete operations of the ShapeNode (Read 1726 times)
JackPan
Full Member
***
Offline


I Love MindFusion!

Posts: 134
Joined: Apr 9th, 2020
The right-click menu controls the copy, paste or delete operations of the ShapeNode
Sep 28th, 2020 at 6:13am
Print Post  
Hi, there Smiley

How to realize that after selecting this ShapeNode, click the right mouse button to pop up a menu option to delete this ShapeNode.

Any assistance would be appreciated.

Cheers,

Jack
  
Back to top
 
IP Logged
 
Lyubo
God Member
*****
Offline


MindFusion team

Posts: 511
Joined: Jun 17th, 2010
Re: The right-click menu controls the copy, paste or delete operations of the ShapeNode
Reply #1 - Sep 28th, 2020 at 7:05am
Print Post  
Hi,

You can use the built-in WPF ContextMenu control and show it from a NodeClicked event (check for which button was pressed from the event arguments object). You can then handle the ContextMenu item's click event to delete the node, by using the Remove method on the Diagram.Nodes collection.

Regards,
Lyubo
MindFusion
  
Back to top
 
IP Logged
 
JackPan
Full Member
***
Offline


I Love MindFusion!

Posts: 134
Joined: Apr 9th, 2020
Re: The right-click menu controls the copy, paste or delete operations of the ShapeNode
Reply #2 - Oct 19th, 2020 at 12:31pm
Print Post  
Thank you very much, Lyubo. Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint