Pre loader

VerticalLineAnnotation text colour


I’m displaying some VerticalLineAnnotations (with ShowLabel=”true”) but the label text always appears white, and I can’t seem to change this. I’ve tried setting the Foreground both in the style and directly on the control declaration, but it gets ignored. I’m using v2.2.5014 if that makes a difference.

Thanks in advance

  • You must to post comments


Thanks for reporting this!

The font color is bound to the annotation’s Stroke property by default. So setting it directly should override all bindings. We’ll check this behavior and try to fix it.

To work around, please, try setting the property on the label directly:

                <s:VerticalLineAnnotation ShowLabel="False" ...>
                    <s:AnnotationLabel LabelPlacement="TopRight" Text="Bottom-aligned" Forground="Red"/>

Hope this helps!

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies