SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

0 votes
0 answers
178 views

I have custom annotations built on the BoxAnnotation base class. The annotations have a rotation feature so that their content can be rotated.
RenderTransform is applied down to BoxAnnotation itself, so that it’s contents are rotated all along with the handlers. But resize grips are staying the same. Is it possible to pass the existing transform (the one applied to the content) also to the grips?

1 vote
10k views

I have got a CustomTextAnnotation like in this example CustomTextAnnotation
I added a Rendertransform like this.

<s:TextAnnotation.RenderTransform>
    <RotateTransform Angle="90"/>
</s:TextAnnotation.RenderTransform>

But the AnchorPoint is not used as rotation center.
I thought of using ToCoordinate() but need a calculator for that which is not available within CustomTextAnnotation.

What is best practice to achive the requested rotation in sciChart?

Showing 2 results
This template supports the sidebar's widgets. Add one or use Full Width layout.