Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link's arrow is not visible until move the node (Read 2335 times)
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Link's arrow is not visible until move the node
Dec 10th, 2010 at 1:55pm
Print Post  
Hi,

In our application we have some ShapeNodes which are connected by DiagramLinks. For exa. nodeA is connected to nodeB with a unidirectional link from source to destination.

Issue: At destination node, link’s arrow is not visible until slightly move the node. If node is moved a bit, arrow gets visible.
We have set following diagram’s and links property in our application.

Code
Select All
diagram.LinkHeadShape = ArrowHeads.PointerArrow;
diagram.LinkHeadShapeSize = linkHeadSize;
diagram.LinkBrush = Brushes.Black;
diagram.LinkHitDistance = 3;
diagram.AllowSelfLoops = false;
diagram.AllowUnconnectedLinks = false;
diagram.AllowLinksRepeat = true;
diagram.LinkCascadeOrientation = MindFusion.Diagramming.Wpf.Orientation.Horizontal;
diagram.LinkHitDistance = 2;
diagram.RouteLinks = false;
diagram.RoutingOptions.Anchoring = Anchoring.Keep;
diagram.RoutingOptions.CrossingCost = 2;
diagram.RoutingOptions.TurnCost = 10;
diagram.RoutingOptions.DontOptimizeLongRoutes = true;
diagram.RoutingOptions.LengthCost = 10;
diagram.RoutingOptions.NodeVicinitySize = 5;
diagram.RoutingOptions.TriggerRerouting = RerouteLinks.Never;


link.AutoRoute = false;
link.Shape = LinkShape.Polyline;
link.SegmentCount = 1;
link.Dynamic = true; //bbd
link.AllowMoveEnd = false;
link.AllowMoveStart = false;
link.HeadShape = ArrowHeads.PointerArrow;
link.HeadShapeSize = linkHeadSize;
link.HandlesStyle = HandlesStyle.Custom;
link.Brush = Brushes.Black;
link.BaseShapeSize = linkHeadSize;
link.BaseShape = ArrowHeads.PointerArrow; 



link's Dynamic property is already set but still we are facing this issue. Please suggest how to resolve this issue.

Thanks in advance.

Thanks,
Bala
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link's arrow is not visible until move the nod
Reply #1 - Dec 10th, 2010 at 2:19pm
Print Post  
Hi,

If you are setting the link's ControlPoints from code, call link.UpdateFromPoints after that to refresh the arrowheads.

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


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Re: Link's arrow is not visible until move the nod
Reply #2 - Dec 11th, 2010 at 8:37am
Print Post  
Thanks stoyan Smiley
This has solved our problem.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint