I'm trying to export shapes to a png file using exportToImage() method in RadDiagram.
However, the generated png image is all black, that is every pixel is black.
The RadDiagram I generated is not in the visual tree.
I did something like this:
var diagram = new RadDiagram();
using (FileStream stream = new FileStream("C:\\test\\test-1.png", FileMode.OpenOrCreate, FileAccess.Write))
Is it because RadDiagram is not in the visual tree? Is there a work around?