Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
590
Connection types of item are not adding in XAMDiagram ?
posted

Hi,

we are using XAM Diagram and I am going to add line straight line, arrow rectangle in XAMDiagram in code behind.

For that I have added following code.

diagram.Items.Add(new DiagramConnection
                                   {
                                       ConnectionType = connectionType,
                                       StartPosition = new Point(startpositionX,startpositionY),
                                       EndPosition = new Point(endpositionX, endpostionY),
                                       HorizontalAlignment = horizontalalignment,
                                       VerticalAlignment = verticalalignment,
                                       Stroke = stroke,
                                       StrokeDashArray = doublestroke,
                                       EndCapType = captype,
                                       Height = connheight,
                                       Width = connwidth
                                   });

 diagram.Items.Add(new DiagramNode
                                   {

                                       ShapeType = diagramShape,
                                       Position = new Point(cordinateX, cordinateY),
                                       Height = diagramheight,
                                       Width = diagramWidth,
                                       Content = content
                                   });

DiagramNode items are showing in XAMDiagram but DiagramConnection Items are not showing in XAMDiagram. Please let us aware for us.

Your help would be appreciate.

Thanks