This is a migrated thread and some comments may be shown as answers.

Center Diagram and Its Background

1 Answer 117 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Maite
Top achievements
Rank 1
Maite asked on 26 Jun 2014, 08:32 AM
Good morning, 

I have a window divide by two columns. In one columne, I have a menu, and the another part has the diagram. I need put in center of the RadDiagram de Shapes and the background image, bacause they don't used all screen. Exist some way for to do this?

Thanks,

Maite.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 30 Jun 2014, 07:58 AM
Hi Maite,

In order to position the shapes in the ViewPort and somehow center them within these bounds you can try using the Diagram.AutoFit command or AutoFit() public method. As for the background Image, if it is in Canvas, you can set Canvas.Left , Canvas.Top to position it. On the other hand, since you know the Diagram.Viewport's size you can also set Width and Height on the Image. I hope this helps you move forward.

Regards,
Petar Mladenov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Diagram
Asked by
Maite
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or