Hello
I Need some help within the composite annotation resizing.
I created a composite annotation based on the composite annotations example. I need to calculate the range between to vertical line on the surface, so I took the MeasurmentXAnnotation.xaml as base code of mine.
however i need to be able to resize the composite annotation not only from the 4 edges (ResizingGrips), but also when the user drag the line annotations to left or to right.
Is there any way to achieve this?
Best regard
- Mohamed ERRAYHANI asked 4 years ago
- You must login to post comments
Hi Mohamed,
I don’t think there is, not without customisation of the source-code. The Annotations including CompositeAnnotations place an overlay over the top using the WPF Adorner layer. This is setup to add grips to the four corners.
I can ask the WPF team if perhaps they know a way to customize it, but I dont think so out of the box.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 4 years ago
-
Update: you can restrict resizing to only X-direction by setting Annotation.ResizeDirections property. You can limit dragging as well by setting Annotation.DragDirections
- You must login to post comments
Please login first to submit.