I am creating custom RadDiagramShape as it is written in Telerik documentation: https://docs.telerik.com/devtools/wpf/controls/raddiagram/howto/create-custom-shape . It contains 2 borders and an image inside of them. When I am doing it according to the documentation, rotation and zoom after rotation works weird with ancor-points of this CustomControl. When I am doing 2 borders and an image inside RadDiagramShape inside xaml without any CustomControl it works as it should.
The picture of weird behaviour is attached (after rotating of both figures).
Would you be so kind to tell me how I can fix this weird behaviour of my CustomControl?
This is my .cs code
This is my style code:
This is my Xaml code: