Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to control Diagram editable or not (Read 2151 times)
esri_test
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 44
Joined: Aug 21st, 2013
How to control Diagram editable or not
Nov 7th, 2013 at 3:00pm
Print Post  
I would like the diagram not editable for user. When it is displayed, the nodes and the links will not be moved or changed, user can't add a new node etc. But the user can still click on the node using NodeClicked method.

I tried IsEnabled = false, it will not be editable, but will not allow me to do NodeClick event either. Which properties I can use to control this?

Thanks,
  
Back to top
 
IP Logged
 
Vincent
Junior Member
**
Offline


I Love MindFusion!

Posts: 62
Joined: Oct 3rd, 2013
Re: How to control Diagram editable or not
Reply #1 - Nov 7th, 2013 at 3:11pm
Print Post  
Hi,

Try diagram.Behavior = Behavior.DoNothing. This ignores the user actions but does raise the events.

Then you can say: diagram.NodeClicked += Diagram_NodeClicked;

Vincent
  
Back to top
 
IP Logged
 
Waterfiets
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Sep 27th, 2013
Re: How to control Diagram editable or not
Reply #2 - Nov 8th, 2013 at 1:49pm
Print Post  
Hi,

If you want to lock specific items on your diagram field, you could also try using the property this.Locked = true;.

Greets,

Sander
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint