Quote:Is it possible to design a new Shape in ShapeNode which can hold two images in the right hand corner one below the other.
The standard ShapeNode class has only one Image property. You have a few options:
- derive ShapeNode to add Image2 property, and override the Draw method to render Image2.
- use standard ShapeNodes with custom drawing, i.e. with their CustomDraw property is set to Additional, and the DrawNode event handler renders the additional image.
- use TableNodes (each cell can display an image) or a custom control wrapped in DiagramNodeAdapter.
- use an attached ShapeNode to display the additional image. If you set Transparent = true, only the image will be visible and not the node geometry.
Quote:Also i wanted to group the nodes, the IfElse node comprises of Shapes.Decision, Shapes.Ellipse and few links. I wanted to make all these into a group so that if the user select the node, the entire group is selected. It will be great to have this feature. Is this possible?
You could use the AttachTo method to attach the additional nodes to the IfElse node; then if the user moves the IfElse, the atatched images will move too. Selecting any of the child nodes won't select the whole group, but you could implement it with some event handling by selecting the nodes accessible through node.MasterGroup or node.SubordinateGroup.
I hope that helps,
Stoyan