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

How to do a Shape with a fixed visual size ?

1 Answer 44 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Thierry
Top achievements
Rank 1
Thierry asked on 04 Jun 2014, 07:52 AM
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

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 05 Jun 2014, 05:40 PM
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.
 
Tags
Diagram
Asked by
Thierry
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or