I have tried to Set Diagram controlâ€™s Zoom and scroll position through programmatically.
I have written the code inside the myDiagram_TemplateApplied(object sender, DiagramEventArgs e) event. But scroll position seems not working.
I am using the following code for setting the Scroll Position.
myDiagram.Panel.Position = new Point (50d, 50d);
When I tried the same code inside a Button Click event. At that time it seems working.
Why this is not working inside TemplateApplied(object sender, DiagramEventArgs e)?
Thanks In Advance.