Page 1 of 1

Hide AnnotationXY Anchor

Posted: Tue Jul 05, 2016 1:21 pm
by Matthias Weidmann
Hello Arction-Team,

is there a way of hiding the Anchor of an AnnotationXY?

Code: Select all

AnnotationXY annotation = new AnnotationXY { 
   Style = AnnotationStyle.Rectangle, 
   LocationCoordinateSystem = CoordinateSystem.ScreenCoordinates,
   Sizing = AnnotationXYSizing.ScreenCoordinates,
   MoveByMouse = true,
   AnchorAdjustByMouse = false,
   RotateByMouse = false,
   ResizeByMouse = false,
   MouseInteraction = true
};
I have tried to set annotation.Anchor.SetValues(float.NaN, float.NaN), but this hides the annotation too.

Sincere regards,
Matthias Weidmann

Re: Hide AnnotationXY Anchor

Posted: Tue Jul 05, 2016 7:45 pm
by ArctionPasi
Hello Matthias,

I believe you can solve that by setting annotation.NibStyle.Alpha = 0.

Re: Hide AnnotationXY Anchor

Posted: Wed Jul 06, 2016 6:07 am
by Matthias Weidmann
Thanks for the hit. That works for me!