Pre loader

VerticalLineAnnotation text colour

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

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
0
0

Hi,

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"/>
                </s:VerticalLineAnnotation>

Hope this helps!

Best regards,
Yuriy

  • 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