How to do a Shape with a fixed visual size ?

2 posts, 0 answers
  1. Thierry
    Thierry avatar
    3 posts
    Member since:
    Dec 2013

    Posted 04 Jun 2014 Link to this post

    Hello,

    I use a RadDiagram with a CustomShape which inherits from RadDiagramShapeBase.

    This CustomShape needs to stay with a fix visual size, even if the zoom value of the diagram changed.

    Is it possible to change the behaviour of that CustomShape to prevent a diagram zoom to change the visual aspect of this shape ?

    The other shapes need to keep their native behavior with the zoom.

    Best regards,
    Thierry
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 05 Jun 2014 Link to this post

    Hi Thierry,
    Unfortunately this is not possible at the moment. We could try to workaround it but some of the built-in functionalities of the RadDiagram won't work correctly because of it.
    One way to do this will be with custom RadDiagram and custom style that uses two ItemHosts (DiagramSurfaces) for the different shapes.
    I've attached a sample project demonstrating this approach but as I said - not everything (e.g. ManipulationAdorner and Connections) is working as expected with the special NoZoom shapes so could you please examine it and see if this is what you're looking for.

    Regards,
    Zarko
    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.
     
  3. DevCraft banner
Back to Top