Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Anchor points and link bebhaviour (Read 1432 times)
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Anchor points and link bebhaviour
Jul 15th, 2010 at 5:30am
Print Post  
Hello, Stoyo!
I have the ShapeNode-based class for describing behaviour and properties of my nodes. So I have also the
Code
Select All
public override void DrawHandles(DrawingContext graphics, HandlesVisualStyle style) 

method and I have the method for HitTestAdjustment Event. But the link starts drawing only when mouse cursor is over the node area. The anchor point is a circle with diametr 6 and center which located on the node visual border. How can I force the link to draw when mouse is over the cirsle area which indicates the anchor point?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Anchor points and link bebhaviour
Reply #1 - Jul 15th, 2010 at 7:25am
Print Post  
Hi,

Try overriding the StartDraw method of a custom behavior class. Return a new InteractionState(new DiagramLink(), Action.Create) from it if the mouse pointer is inside the anchor area.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Re: Anchor points and link bebhaviour
Reply #2 - Jul 15th, 2010 at 8:32pm
Print Post  
Ok! I'll try. If I will have the problems I write to you. Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint