Dimension lines

4 posts, 1 answers
  1. Maurício
    Maurício avatar
    41 posts
    Member since:
    Jan 2011

    Posted 21 Jan 2015 Link to this post

    Hello

    I would like to know if it's possible to build a custom tool to create dimension lines, like the one i've draw in the attached image.

  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 26 Jan 2015 Link to this post

    Hello Maurício,

    The diagram does not provide such functionality out of the box. However, you should be able to implement it with custom code by modifying the template of the shapes.

    For your convenience I attached a sample project demonstrating such approach. You can use it as a starting point for your implementation. Please give the solution a try and let me know if it helps.

    Regards,
    Martin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Maurício
    Maurício avatar
    41 posts
    Member since:
    Jan 2011

    Posted 26 Jan 2015 in reply to Martin Link to this post

    Hello Martin,

    Thank you for the answer.

    Actually what I need is a little bit more complex, I need to be able to select two points to add the dimension line, I also need to be able to customize and drag it.
    I am thinking of using connectors and connections attached to a thin shape. 
    Check the attached GIF to see what I've done so far.

    I created a new tool where I grab the first and second clicked connectors, then I create a shape and add the connections between them.
    Do you know a better approach?
  5. Answer
    Martin
    Admin
    Martin avatar
    1099 posts

    Posted 27 Jan 2015 Link to this post

    Hello Maurício,

    As the diagram control is very extensible, there should be at least few approaches that you can use to achieve your requirement. However, the described approach seems quite good for achieving your requirement. If you need further assistance, please let us know.

    Regards,
    Martin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top