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>
- Todd asked 11 years ago
- You must login to post comments
Hi there,
Please, try using AnontationLabel.TextFormatting property or LabelTextFormatting property on HorizontalLineAnnotation. Let us know if this helps,
Regards,
Yuriy
- Yuriy Zadereckiy answered 11 years ago
- You must login to post comments
Please login first to submit.