Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic enable node mapping through arrows on canvas (Read 1264 times)
kelum
Full Member
***
Offline


I Love MindFusion!

Posts: 100
Joined: Mar 25th, 2017
enable node mapping through arrows on canvas
May 23rd, 2017 at 5:28pm
Print Post  
how to enable map the node objects using arrows on canvas

like following image




currently my canvas existing like this, and currently that feature not available for the canvas

Code
Select All
<diag:Diagram x:Name="diagram" PreviewDragOver="OnPreviewDragOver" AllowDrop="True" RotateCursor="Hand" ShowGrid="True" NodeModifying="OnNodeModifiying" AutoResize="None" AllowInplaceEdit = "True"  SerializeTag="siteMap_SerializeTag" DeserializeTag="siteMap_DeserializeTag"/>

<diag:NodeListView x:Name="NodeList"/> 



beside I applied NodeListView rectangle item in codebehind with following syntaxes


Code
Select All
NodeList.Items.Add(new ShapeNode { Shape = Shapes.Rectangle, EnabledHandles = AdjustmentHandles.All & ~AdjustmentHandles.ResizeHandles, Bounds = new Rect(0, 0, 60, 30), TextAlignment = TextAlignment.Center }); 



where should I apply that feature,
for a node or for the mind-fusion diagram ?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: enable node mapping through arrows on canvas
Reply #1 - May 23rd, 2017 at 6:32pm
Print Post  
You can let users draw links between nodes by setting diagram.Behavior = DrawLinks. To create links from code, call diagram.Factory.CreateDiagramLink(origin, dest) method.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint