Hi, I am new to MindFusion. I am trying to create a series of nodes and place them in with predefined locations. For some reason, it does not work.
Dim nodeMap As New Dictionary(Of String, DiagramNode) Dim bounds As New Rect(600, 600, 100, 200) Dim myShape As Shape
myShape = GetShape(r("NodeTypeDesc"))
Dim DiagramNode = diagram.Factory.CreateShapeNode(New Rect(New Size(bounds.Width, bounds.Height)), myShape)
DiagramNode.Bounds = New Rect(500, 500, 50, 200)
'Dim DiagramNode = New CustomNodeStart()
DiagramNode.Image = New BitmapImage(New Uri("ac0026-64.png", UriKind.Relative))
DiagramNode.ImageAlign = ImageAlign.TopCenter
DiagramNode.Text = r("FlowChartItemDesc").ToString
DiagramNode.Uid = r("FlowChartItemId").ToString
'objNode = New clsNode(r("FlowChartItemId"), r("NodeTypeDesc"), r("FlowChartItemDesc").ToString, New Rect(0, 0, 90, 50), myShape, r("FlowChartParentId"), r("FlowChartChildId"))
'm_objNodeCollection.Add(objNode)
nodeMap(r("FlowChartItemId").ToString) = DiagramNode
diagram.Nodes.Add(DiagramNode)
i am not sure if i am doing any wrongs?
|