How to zoom to shape position in code behind?

2 posts, 0 answers
  1. Michał
    Michał avatar
    8 posts
    Member since:
    Jun 2013

    Posted 23 Jul 2013 Link to this post

    I've got my RadDiagram and many shapes on it, I let the end-user to select shape from the list and I'd like to zoom to selected shape. I get the shape position and use diagram zoom in method like this:

    radDiagram.ZoomIn(1, shape.Position);

    It does not zoom to shape, what am I doing wrong?
  2. Michał
    Michał avatar
    8 posts
    Member since:
    Jun 2013

    Posted 24 Jul 2013 Link to this post

    Ah, sorry for the duplicate, the answer is in this thread

    "The FitTo() function does exactly what I need. "
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top