Hide AnnotationXY Anchor

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
Matthias Weidmann
Posts: 16
Joined: Tue Jun 21, 2016 10:24 am

Hide AnnotationXY Anchor

Post by Matthias Weidmann » Tue Jul 05, 2016 1:21 pm

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

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Hide AnnotationXY Anchor

Post by ArctionPasi » Tue Jul 05, 2016 7:45 pm

Hello Matthias,

I believe you can solve that by setting annotation.NibStyle.Alpha = 0.
LightningChart Support Team, PT

Matthias Weidmann
Posts: 16
Joined: Tue Jun 21, 2016 10:24 am

Re: Hide AnnotationXY Anchor

Post by Matthias Weidmann » Wed Jul 06, 2016 6:07 am

Thanks for the hit. That works for me!

Post Reply