Dimensions of Annotation3D?

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
User avatar
vrmitch
Posts: 21
Joined: Thu Oct 09, 2014 6:19 pm

Dimensions of Annotation3D?

Post by vrmitch » Mon Dec 15, 2014 4:45 pm

Hello,

I'm trying to get the actual dimensions (ActualWidth, ActualHeight?) of an Annotation3D so I can explicitly position it in the corner of a chart. How can I get those or another way to force an annotation into a corner? I can't just trial-and-error due to changing contents resizing the annotation.

Thanks,

Mitch

User avatar
vrmitch
Posts: 21
Joined: Thu Oct 09, 2014 6:19 pm

Re: Dimensions of Annotation3D?

Post by vrmitch » Mon Dec 15, 2014 6:28 pm

Resolved this by setting the anchor to bottom right (1,1) and the screen coordinates to the ActualWidth and ActualHeight of the chart.

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

Re: Dimensions of Annotation3D?

Post by ArctionPasi » Mon Dec 15, 2014 9:48 pm

Another way is to use MeasureText to measure the rectangle the annotation is going to cover.

http://www.arction.com/forum/viewtopic. ... text#p1429
LightningChart Support Team, PT

Post Reply