Hi,
we're looking for a method to make links follow the outline of a shape in a template node just like when using ShapeNode with the predefined shapes.
When we use a template node, the links are attached to node by snapping to the bounding box and the result we obtain is unacceptable for our charts. When we use a path in the template (for example an hexagon) we want the links to be continuously snapped to the hexagon. See the heaxagon and the circle problem in the attached figure
We know the availability of the ShapeNode with the specific MindFusion elements and formulas, but we're trying to generalize the construction of shapes by using XAML, inside the template node that can accomodate many different elements.
We found this page in the documentation
http://www.mindfusion.eu/onlinehelp/wpfdiagram/O_T_MindFusion_Diagramming_Wpf_Sh...referring to the possibility to specify a pathGeometry callback. We're looking for something very similar both for TemplateNode and ShapeNode. Such constructors are not present in the ShapeNodes.
Independently from the Shape or the content of the TemplateNode, we're looking for a way to specify the path around which the arrows should be snapped to, but we do'nt want to rely on discrete control points, because the nodes are used in the Spring layout which does not work well with control points, from the graphical point of view.
To generate the border of the Template nodes we're using, we typically insert a Path into it, and in code behind we use a snippet like this one to construct its shape.
string data = "M0,1 A 1,1 180 1 1 2,1 A 1,1 180 1 1 0,1";
var converter = TypeDescriptor.GetConverter(typeof(Geometry));
CircleBorder = (Geometry)converter.ConvertFrom(data);
Hope you can point us in the right direction or provide a a way to obtain the result we're expecting. For us it would be sufficient to provide the path the links should snap to in both shapenode and templatenode
Thanks in advance.