ZOrder
RadDiagram gives you the ability to control the Z-Order of shapes and connections by using their ZIndex property. You can also use RadDiagramCommands in order to increase/decrease ZIndex of the selected RadDiagramItems simultaneously.
Using the ZIndex property
Consider the following code:
We have reversed the natural ZOrder of the 3 Shapes.
Using the RadDiagram Commands
RadDiagram provides a set of predefined commands for manipulating the selected items' ZIndices. "BringForward" and "SendBackward" allow you to increase/decrease the Z-Indices of the selected RadDiagramItems. If you need to bring the selected item(s) on top of all other items or below them, you can use "BringToFront" and "SentToback":
This way configured, the items in RadDiagram are ordered as illustrated below:
Here is the result of selecting the first shape and executing the DiagramCommands.BringToFront:
Here is the result of selecting the third shape and executing the DiagramCommands.SendToBack: