Fires when annotation label was created.
Namespace:
C1.Silverlight.ChartAssembly: C1.Silverlight.Chart (in C1.Silverlight.Chart.dll)
Syntax
C# |
---|
public event AnnoCreatedEventHandler AnnoCreated |
Visual Basic |
---|
Public Event AnnoCreated As AnnoCreatedEventHandler |
Remarks
In the event handler it's possible to customize appearance of the label
created by default.
Examples
The following code sets color of labels depending on its values.
Copy CodeC#
chart.View.AxisY.AnnoCreated += (s, e) => { var label = (TextBlock)e.Label; if (e.Value >= 0) label.Foreground = Brushes.Red; else label.Foreground = Brushes.Blue; }; |