Pre loader

AnnotationLabel does not respect the binding StringFormat

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 have an annotation that I want to apply a label with specific formatting but it seems that the axis formatting is being used instead.

<sciChart:HorizontalLineAnnotation x:Name="Total" HorizontalAlignment="Stretch" Stroke="Red" StrokeThickness="3" StrokeDashArray="2,2" Y1="{Binding Total}">
<sciChart:AnnotationLabel LabelPlacement="TopLeft" FontSize="16" Text="{Binding Path=DataContext.Total, StringFormat=This is my formatted total: {0}}" />
</sciChart:HorizontalLineAnnotation>

  • You must to post comments
0
0

Hi there,

Please, try using AnontationLabel.TextFormatting property or LabelTextFormatting property on HorizontalLineAnnotation. Let us know if this helps,

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