Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to get Shapenode attached property (Read 2167 times)
SC
YaBB Newbies
*
Offline



Posts: 37
Joined: Jan 18th, 2008
How to get Shapenode attached property
Aug 7th, 2008 at 7:38pm
Print Post  
Hi
I have my canvas items wrapped into diagramnodeadapters.
I am catching linkcreated event and its e.Link.Origin is giving the return type as shapenode as I have attached shapenodes to the diagramnodes and I am trying to get the attached property set on diagramnodeadapter.
So I am trying to access the source of the link interms of diagramnodeadapter. How can I do that.
« Last Edit: Aug 7th, 2008 at 8:59pm by SC »  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Online


tech.support

Posts: 3447
Joined: Oct 19th, 2005
Re: How to get Shapenode attached property
Reply #1 - Aug 8th, 2008 at 8:05am
Print Post  
Hi

If you are using ShapeNode.AttachTo(DiagramNodeAdapter), you can access the DiagramNodeAdapter through the ShapeNode.MasterGroup.MainItem property.

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