Center Diagram and Its Background

2 posts, 0 answers
  1. Maite
    Maite avatar
    33 posts
    Member since:
    Mar 2014

    Posted 26 Jun 2014 Link to this post

    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?


  2. Petar Mladenov
    Petar Mladenov avatar
    2991 posts

    Posted 30 Jun 2014 Link to this post

    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.

    Petar Mladenov
    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.
Back to Top